Win32 - frameCounter resets when loading a new rom. Removed some of my debugging printlog statements

This commit is contained in:
adelikat 2008-11-19 14:28:49 +00:00
parent a2b5316b61
commit 3e0f2e7734
1 changed files with 4 additions and 3 deletions

View File

@ -543,7 +543,7 @@ void UpdateRecentRomsMenu()
moo.fType = 0; moo.fType = 0;
moo.wID = baseid + x; moo.wID = baseid + x;
moo.dwTypeData = (LPSTR)tmp.c_str(); moo.dwTypeData = (LPSTR)tmp.c_str();
printlog("Inserting: %s\n",tmp.c_str()); //Debug //printlog("Inserting: %s\n",tmp.c_str()); //Debug
InsertMenuItem(recentromsmenu, 0, 1, &moo); InsertMenuItem(recentromsmenu, 0, 1, &moo);
} }
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
@ -584,8 +584,8 @@ void UpdateRecentRoms(char* filename)
RecentRoms.pop_back(); RecentRoms.pop_back();
//Debug //Debug
for (int x = 0; x < RecentRoms.size(); x++) //for (int x = 0; x < RecentRoms.size(); x++)
printlog("Recent ROM: %s\n",RecentRoms[x].c_str()); // printlog("Recent ROM: %s\n",RecentRoms[x].c_str());
UpdateRecentRomsMenu(); UpdateRecentRomsMenu();
} }
@ -1047,6 +1047,7 @@ BOOL LoadROM(char * filename, const char *cflash_disk_image)
if (NDS_LoadROM(filename, backupmemorytype, backupmemorysize, cflash_disk_image) > 0) if (NDS_LoadROM(filename, backupmemorytype, backupmemorysize, cflash_disk_image) > 0)
{ {
printlog("Loading %s was successful\n",filename); printlog("Loading %s was successful\n",filename);
frameCounter=0;
UpdateRecentRoms(filename); UpdateRecentRoms(filename);
return TRUE; return TRUE;
} }