- fix crash (RecentROM)
This commit is contained in:
mtabachenko 2008-11-15 15:56:03 +00:00
parent 03c97b404d
commit 443ce7216d
1 changed files with 2 additions and 1 deletions

View File

@ -504,6 +504,7 @@ void UpdateRecentRomsMenu()
//UpdateRecentRoms will always call this //UpdateRecentRoms will always call this
//This will be always called by GetRecentRoms on DesMume startup //This will be always called by GetRecentRoms on DesMume startup
if (RecentRoms.size() == 0) return;
//---------------------------------------------------------------------- //----------------------------------------------------------------------
//Get Menu item info //Get Menu item info
@ -1035,7 +1036,7 @@ void StateLoadSlot(int num)
BOOL LoadROM(char * filename, const char *cflash_disk_image) BOOL LoadROM(char * filename, const char *cflash_disk_image)
{ {
NDS_Pause(); NDS_Pause();
if (strcmp(filename,"")!=0) printlog("Atetmpting to load ROM: %s\n",filename); if (strcmp(filename,"")!=0) printlog("Attempting to load ROM: %s\n",filename);
if (NDS_LoadROM(filename, backupmemorytype, backupmemorysize, cflash_disk_image) > 0) if (NDS_LoadROM(filename, backupmemorytype, backupmemorysize, cflash_disk_image) > 0)
{ {