Option to enable/disable auto patching. [ipher, Nach]

This commit is contained in:
n-a-c-h
2005-01-05 10:23:05 +00:00
parent bda386a219
commit ea3dabb7ee
5 changed files with 115 additions and 97 deletions

View File

@@ -53,12 +53,10 @@ extern int NumofBanks;
extern unsigned int *romdata;
extern bool IPSPatched;
extern unsigned char Header512;
extern bool AutoPatch;
void *doMemAlloc(int);
char *patchfile;
struct
{
unsigned int file_size;
@@ -152,6 +150,12 @@ void PatchUsingIPS()
IPSPatched = false;
if (!AutoPatch)
{
deinitPatch(); //Needed if the call to this function was done from findZipIPS()
return;
}
if (patchfile) //Regular file, not Zip
{
if (!initPatch()) { goto IPSDone; }