From 4fb55bddb95632ea2d24a1bc81f207a6d9744c76 Mon Sep 17 00:00:00 2001 From: zeromus Date: Tue, 28 Feb 2017 16:31:51 -0600 Subject: [PATCH] fix: trying to use a dldi-function without --load-type=1 would end up in desmume crashing --- desmume/src/NDSSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index 17f496a86..e4e37cb0b 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -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)