clear cheat list when another ROM is loaded
This commit is contained in:
parent
99acf7c6ba
commit
a1fa8613cf
|
@ -482,6 +482,7 @@ bool MainWnd::FileRun()
|
|||
}
|
||||
char tempName[2048];
|
||||
char file[2048];
|
||||
CString oldFile = theApp.filename;
|
||||
|
||||
utilStripDoubleExtension(theApp.szFile, tempName);
|
||||
|
||||
|
@ -492,6 +493,12 @@ bool MainWnd::FileRun()
|
|||
if(index != -1)
|
||||
theApp.filename = theApp.filename.Left(index);
|
||||
|
||||
if( theApp.filename != oldFile ) {
|
||||
// clear cheat list when another game is loaded
|
||||
cheatsDeleteAll( false );
|
||||
gbCheatRemoveAll();
|
||||
}
|
||||
|
||||
CString ipsname;
|
||||
ipsname.Format("%s.ips", theApp.filename);
|
||||
|
||||
|
|
Loading…
Reference in New Issue