Merge branch 'master' of https://github.com/project64/project64
This commit is contained in:
commit
b22f93d4c2
|
@ -1674,6 +1674,7 @@ bool CN64System::LoadState()
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
CPath NewFileName = FileName;
|
||||||
|
|
||||||
//Use old file Name
|
//Use old file Name
|
||||||
if (g_Settings->LoadDword(Game_CurrentSaveState) != 0)
|
if (g_Settings->LoadDword(Game_CurrentSaveState) != 0)
|
||||||
|
@ -1686,6 +1687,17 @@ bool CN64System::LoadState()
|
||||||
}
|
}
|
||||||
bool Result = LoadState(FileName);
|
bool Result = LoadState(FileName);
|
||||||
WriteTrace(TraceN64System, TraceDebug, "Done (res: %s)", Result ? "True" : "False");
|
WriteTrace(TraceN64System, TraceDebug, "Done (res: %s)", Result ? "True" : "False");
|
||||||
|
if (Result == false)
|
||||||
|
{
|
||||||
|
if (g_Settings->LoadDword(Setting_AutoZipInstantSave))
|
||||||
|
{
|
||||||
|
Result = LoadState(ZipFileName);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Result = LoadState(NewFileName);
|
||||||
|
}
|
||||||
|
}
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -331,6 +331,8 @@ void CRomBrowser::HighLightLastRom(void)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
m_LastRom = UISettingsLoadStringIndex(File_RecentGameFileIndex, 0);
|
||||||
|
|
||||||
//Make sure Rom browser is visible
|
//Make sure Rom browser is visible
|
||||||
if (!RomBrowserVisible()) { return; }
|
if (!RomBrowserVisible()) { return; }
|
||||||
|
|
||||||
|
@ -1273,4 +1275,4 @@ bool CRomBrowser::GetRomFileNames(strlist & FileList, const CPath & BaseDirector
|
||||||
}
|
}
|
||||||
} while (SearchPath.FindNext());
|
} while (SearchPath.FindNext());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue