fix crash in cheat search involving loading state in the middle of a search session
This commit is contained in:
parent
cd5560b966
commit
3499207db6
|
@ -792,6 +792,10 @@ void cheatsSearchInit(u8 type, u8 size, u8 sign)
|
|||
|
||||
void cheatsSearchClose()
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
void CheatsSearchReset();
|
||||
CheatsSearchReset();
|
||||
#endif
|
||||
if (searchStatMem) delete [] searchStatMem;
|
||||
searchStatMem = NULL;
|
||||
|
||||
|
|
|
@ -3727,7 +3727,6 @@ LRESULT CALLBACK EmulationSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, L
|
|||
|
||||
if(romloaded)
|
||||
{
|
||||
CheatsSearchReset();
|
||||
NDS_Reset();
|
||||
}
|
||||
}
|
||||
|
@ -3960,7 +3959,6 @@ LRESULT CALLBACK WifiSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM
|
|||
|
||||
if(romloaded)
|
||||
{
|
||||
CheatsSearchReset();
|
||||
NDS_Reset();
|
||||
}
|
||||
}
|
||||
|
@ -4100,7 +4098,6 @@ LRESULT CALLBACK SoundSettingsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARA
|
|||
|
||||
void ResetGame()
|
||||
{
|
||||
CheatsSearchReset();
|
||||
NDS_Reset();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue