Merge remote-tracking branch 'origin/head'
Conflicts: Source/Project64/N64 System/Mips/FlashRam.cpp
This commit is contained in:
commit
2b24f49b84
|
@ -37,7 +37,6 @@ void CSystemEvents::ExecuteEvents ( void )
|
|||
EventList Events = m_Events;
|
||||
m_Events.clear();
|
||||
bool bPause = false, bLoadedSave = false;
|
||||
|
||||
for (EventList::const_iterator iter = Events.begin(); !bLoadedSave && iter != Events.end(); iter++ )
|
||||
{
|
||||
switch (*iter)
|
||||
|
|
|
@ -149,9 +149,9 @@ bool CMainMenu::ProcessMessage(WND_HANDLE hWnd, DWORD FromAccelerator, DWORD Men
|
|||
openfilename.Flags = OFN_HIDEREADONLY;
|
||||
|
||||
_BaseSystem->ExternalEvent(SysEvent_PauseCPU_SaveGame);
|
||||
|
||||
if (GetSaveFileName (&openfilename))
|
||||
{
|
||||
|
||||
_splitpath( SaveFile, drive, dir, fname, ext );
|
||||
if (_stricmp(ext, ".pj") == 0 || _stricmp(ext, ".zip") == 0)
|
||||
{
|
||||
|
@ -167,10 +167,8 @@ bool CMainMenu::ProcessMessage(WND_HANDLE hWnd, DWORD FromAccelerator, DWORD Men
|
|||
char SaveDir[MAX_PATH];
|
||||
_makepath( SaveDir, drive, dir, NULL, NULL );
|
||||
_Settings->SaveString(Directory_LastSave,SaveDir);
|
||||
|
||||
_BaseSystem->ExternalEvent(SysEvent_SaveMachineState);
|
||||
_System->SaveState();
|
||||
}
|
||||
|
||||
_BaseSystem->ExternalEvent(SysEvent_ResumeCPU_SaveGame);
|
||||
}
|
||||
break;
|
||||
|
@ -194,16 +192,13 @@ bool CMainMenu::ProcessMessage(WND_HANDLE hWnd, DWORD FromAccelerator, DWORD Men
|
|||
openfilename.Flags = OFN_HIDEREADONLY;
|
||||
|
||||
_BaseSystem->ExternalEvent(SysEvent_PauseCPU_LoadGame);
|
||||
|
||||
if (GetOpenFileName (&openfilename)) {
|
||||
_Settings->SaveString(GameRunning_InstantSaveFile,SaveFile);
|
||||
|
||||
char SaveDir[MAX_PATH], drive[_MAX_DRIVE] ,dir[_MAX_DIR], fname[_MAX_FNAME],ext[_MAX_EXT];
|
||||
_splitpath( SaveFile, drive, dir, fname, ext );
|
||||
_makepath( SaveDir, drive, dir, NULL, NULL );
|
||||
_Settings->SaveString(Directory_LastSave,SaveDir);
|
||||
|
||||
_BaseSystem->ExternalEvent(SysEvent_LoadMachineState);
|
||||
_System->LoadState();
|
||||
}
|
||||
_BaseSystem->ExternalEvent(SysEvent_ResumeCPU_LoadGame);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue