ARGH Why can't anyone write linear code, you don't put a return statement in the middle of a function, BAD BAD BAD

This commit is contained in:
pagefault
2005-03-03 17:32:39 +00:00
parent 911f75c91f
commit bd53182e20

View File

@@ -677,11 +677,8 @@ void DumpROMLoadInfo()
{
FILE *fp = 0;
if (!RomInfo) //rominfo.txt info dumping enabled?
if (RomInfo) //rominfo.txt info dumping enabled?
{
return;
}
fp = fopen("rominfo.txt", "w");
if (!fp) { return; }
fputs("This is the info for the last game you ran.\n\nFile: ", fp);
@@ -697,6 +694,8 @@ void DumpROMLoadInfo()
fclose(fp);
}
}
void loadFile(char *filename)
{