Update TWL flashcard mount code

This commit is contained in:
RocketRobz 2020-09-04 00:44:50 -06:00
parent 3bf8f17b7c
commit 2abfaaf22b

View File

@ -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()) {