From 2abfaaf22b806b651287ab546b0c7e7ccf6c1cc2 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Fri, 4 Sep 2020 00:44:50 -0600 Subject: [PATCH] Update TWL flashcard mount code --- arm9/source/driveOperations.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arm9/source/driveOperations.cpp b/arm9/source/driveOperations.cpp index 6cfbe3c..91b8e5f 100644 --- a/arm9/source/driveOperations.cpp +++ b/arm9/source/driveOperations.cpp @@ -275,25 +275,25 @@ TWL_CODE bool twl_flashcardMount(void) { // Read a DLDI driver specific to the cart if (!memcmp(gameid, "ASMA", 4)) { io_dldi_data = dldiLoadFromBin(r4tf_dldi); - fatMountSimple("fat", &io_dldi_data->ioInterface); + fatMountSimple("fat", dldiGetInternal()); } else if (!memcmp(gamename, "TOP TF/SD DS", 12) || !memcmp(gameid, "A76E", 4)) { io_dldi_data = dldiLoadFromBin(tt_sd_dldi); - fatMountSimple("fat", &io_dldi_data->ioInterface); + fatMountSimple("fat", dldiGetInternal()); } else /*if (!memcmp(gamename, "PASS", 4) && !memcmp(gameid, "ASME", 4)) { io_dldi_data = dldiLoadFromBin(CycloEvo_dldi); - fatMountSimple("fat", &io_dldi_data->ioInterface); - } else*/ if (!memcmp(gamename, "D!S!XTREME", 12) && !memcmp(gameid, "AYIE", 4)) { + fatMountSimple("fat", dldiGetInternal()); + } else*/ if (!memcmp(gamename, "D!S!XTREME", 10) && !memcmp(gameid, "AYIE", 4)) { io_dldi_data = dldiLoadFromBin(dsx_dldi); - fatMountSimple("fat", &io_dldi_data->ioInterface); + fatMountSimple("fat", dldiGetInternal()); } else if (!memcmp(gamename, "QMATETRIAL", 9) || !memcmp(gamename, "R4DSULTRA", 9)) { io_dldi_data = dldiLoadFromBin(r4idsn_sd_dldi); - fatMountSimple("fat", &io_dldi_data->ioInterface); + fatMountSimple("fat", dldiGetInternal()); } else if (!memcmp(gameid, "ACEK", 4) || !memcmp(gameid, "YCEP", 4) || !memcmp(gameid, "AHZH", 4) || !memcmp(gameid, "CHPJ", 4) || !memcmp(gameid, "ADLP", 4)) { io_dldi_data = dldiLoadFromBin(ak2_sd_dldi); - fatMountSimple("fat", &io_dldi_data->ioInterface); + fatMountSimple("fat", dldiGetInternal()); } /*else if (!memcmp(gameid, "ALXX", 4)) { io_dldi_data = dldiLoadFromBin(dstwo_dldi); - fatMountSimple("fat", &io_dldi_data->ioInterface); + fatMountSimple("fat", dldiGetInternal()); }*/ if (flashcardFound()) {