IPS patching works now

This commit is contained in:
dborth 2008-10-31 03:57:24 +00:00
parent 326c8f988d
commit 8ba952a9eb
2 changed files with 3 additions and 7 deletions

View File

@ -503,18 +503,11 @@ int FileSelector (int method)
inSz = false; inSz = false;
if (SNESROMSize > 0) if (SNESROMSize > 0)
{
Memory.LoadROM ("BLANK.SMC");
Memory.LoadSRAM ("BLANK");
haverom = 1;
return 1; return 1;
}
else else
{
WaitPrompt((char*) "Error loading ROM!"); WaitPrompt((char*) "Error loading ROM!");
} }
} }
}
redraw = 1; redraw = 1;
} // End of A } // End of A
if ( (p & PAD_BUTTON_B) || (wp & (WPAD_BUTTON_B | WPAD_CLASSIC_BUTTON_B)) ) if ( (p & PAD_BUTTON_B) || (wp & (WPAD_BUTTON_B | WPAD_CLASSIC_BUTTON_B)) )

View File

@ -104,6 +104,9 @@ LoadManager ()
// load UPS/IPS/PPF patch // load UPS/IPS/PPF patch
LoadPatch(GCSettings.LoadMethod); LoadPatch(GCSettings.LoadMethod);
Memory.LoadROM ("BLANK.SMC");
Memory.LoadSRAM ("BLANK");
// load SRAM or snapshot // load SRAM or snapshot
if ( GCSettings.AutoLoad == 1 ) if ( GCSettings.AutoLoad == 1 )
LoadSRAM(GCSettings.SaveMethod, SILENT); LoadSRAM(GCSettings.SaveMethod, SILENT);