Fix for MSVC.

This commit is contained in:
n-a-c-h
2005-01-09 22:05:12 +00:00
parent 67cb76e689
commit 79d466d57c

View File

@@ -466,12 +466,13 @@ extern bool RomInfo;
char *lastROMFileName; char *lastROMFileName;
void DumpROMLoadInfo() void DumpROMLoadInfo()
{ {
FILE *fp = 0;
if (!RomInfo) //rominfo.txt info dumping enabled? if (!RomInfo) //rominfo.txt info dumping enabled?
{ {
return; return;
} }
FILE *fp = 0;
fp = fopen("rominfo.txt", "w"); fp = fopen("rominfo.txt", "w");
if (!fp) { return; } if (!fp) { return; }
fputs("This is the info for the last game you ran.\n\nFile: ", fp); fputs("This is the info for the last game you ran.\n\nFile: ", fp);