fix: trying to use a dldi-function without --load-type=1 would end up in desmume crashing

This commit is contained in:
zeromus 2017-02-28 16:31:51 -06:00
parent 8c8ba5e355
commit 4fb55bddb9
1 changed files with 1 additions and 1 deletions

View File

@ -759,7 +759,7 @@ int NDS_LoadROM(const char *filename, const char *physicalName, const char *logi
{
if(!CommonSettings.loadToMemory)
msgbox->warn("Sorry.. right now, you can't use the default (stream rom from disk) with homebrew due to a bug with DLDI-autopatching");
if (slot1_GetCurrentType() == NDS_SLOT1_R4)
else if (slot1_GetCurrentType() == NDS_SLOT1_R4)
DLDI::tryPatch((void*)gameInfo.romdata, gameInfo.romsize, 1);
else
if (slot2_GetCurrentType() == NDS_SLOT2_CFLASH)