[!]Fix peculiar issue where save states would not save instantly when using "Save as", and in some cases not save at all.

Fix this by making an event call instead.
This commit is contained in:
Emmet Young 2015-01-31 23:52:35 +11:00
parent d8918f3b1b
commit 64e9135d19
1 changed files with 2 additions and 2 deletions

View File

@ -167,12 +167,12 @@ bool CMainMenu::ProcessMessage(HWND hWnd, DWORD /*FromAccelerator*/, DWORD MenuI
_makepath( SaveFile, drive, dir, fname, NULL );
}
}
g_Settings->SaveString(GameRunning_InstantSaveFile,SaveFile);
g_Settings->SaveString(GameRunning_InstantSaveFile, SaveFile);
char SaveDir[MAX_PATH];
_makepath( SaveDir, drive, dir, NULL, NULL );
g_Settings->SaveString(Directory_LastSave,SaveDir);
g_System->SaveState();
g_BaseSystem->ExternalEvent(SysEvent_SaveMachineState);
}
g_BaseSystem->ExternalEvent(SysEvent_ResumeCPU_SaveGame);
}