From e66e530464d81ef68fa088824de0dd5976823227 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Thu, 30 Jan 2025 01:36:00 -0700 Subject: [PATCH] Add *Tony Hawk's Downhill Jam* to `incompatibleGameListFC` --- romsel_aktheme/arm9/source/fileBrowse.cpp | 6 ++---- romsel_dsimenutheme/arm9/source/fileBrowse.cpp | 6 ++---- romsel_r4theme/arm9/source/fileBrowse.cpp | 6 ++---- universal/include/incompatibleGameMap.h | 5 +++-- 4 files changed, 9 insertions(+), 14 deletions(-) diff --git a/romsel_aktheme/arm9/source/fileBrowse.cpp b/romsel_aktheme/arm9/source/fileBrowse.cpp index 0cbdb8a372..96e8ce5d1f 100644 --- a/romsel_aktheme/arm9/source/fileBrowse.cpp +++ b/romsel_aktheme/arm9/source/fileBrowse.cpp @@ -1008,8 +1008,6 @@ bool donorRomMsg(void) { } bool checkForCompatibleGame() { - return true; - bool proceedToLaunch = true; /* if (!dsiFeatures() && ms().secondaryDevice) { @@ -1023,7 +1021,7 @@ bool checkForCompatibleGame() { } } */ - /* if (proceedToLaunch && ms().secondaryDevice) { + if (ms().secondaryDevice) { // TODO: If the list gets large enough, switch to bsearch(). for (unsigned int i = 0; i < sizeof(incompatibleGameListFC)/sizeof(incompatibleGameListFC[0]); i++) { if (memcmp(gameTid[cursorPosOnScreen], incompatibleGameListFC[i], 3) == 0) { @@ -1032,7 +1030,7 @@ bool checkForCompatibleGame() { break; } } - } */ + } /* if (proceedToLaunch) { // TODO: If the list gets large enough, switch to bsearch(). diff --git a/romsel_dsimenutheme/arm9/source/fileBrowse.cpp b/romsel_dsimenutheme/arm9/source/fileBrowse.cpp index 8bf5d5234c..105cbf6798 100644 --- a/romsel_dsimenutheme/arm9/source/fileBrowse.cpp +++ b/romsel_dsimenutheme/arm9/source/fileBrowse.cpp @@ -1860,8 +1860,6 @@ bool donorRomMsg(const char *filename) { } bool checkForCompatibleGame(const char *filename) { - return true; - bool proceedToLaunch = true; /* if (!dsiFeatures() && ms().secondaryDevice) { @@ -1875,7 +1873,7 @@ bool checkForCompatibleGame(const char *filename) { } } */ - /* if (proceedToLaunch && ms().secondaryDevice) { + if (ms().secondaryDevice) { // TODO: If the list gets large enough, switch to bsearch(). for (unsigned int i = 0; i < sizeof(incompatibleGameListFC)/sizeof(incompatibleGameListFC[0]); i++) { if (memcmp(gameTid[CURPOS], incompatibleGameListFC[i], 3) == 0) { @@ -1884,7 +1882,7 @@ bool checkForCompatibleGame(const char *filename) { break; } } - } */ + } /* if (proceedToLaunch) { // TODO: If the list gets large enough, switch to bsearch(). diff --git a/romsel_r4theme/arm9/source/fileBrowse.cpp b/romsel_r4theme/arm9/source/fileBrowse.cpp index 36bee04e70..7ced66ba2b 100644 --- a/romsel_r4theme/arm9/source/fileBrowse.cpp +++ b/romsel_r4theme/arm9/source/fileBrowse.cpp @@ -606,8 +606,6 @@ void showLocation(void) { } bool checkForCompatibleGame(const char *filename) { - return true; - bool proceedToLaunch = true; /* if (!dsiFeatures() && ms().secondaryDevice) { @@ -621,7 +619,7 @@ bool checkForCompatibleGame(const char *filename) { } } */ - /* if (proceedToLaunch && ms().secondaryDevice) { + if (ms().secondaryDevice) { // TODO: If the list gets large enough, switch to bsearch(). for (unsigned int i = 0; i < sizeof(incompatibleGameListFC)/sizeof(incompatibleGameListFC[0]); i++) { if (memcmp(gameTid, incompatibleGameListFC[i], 3) == 0) { @@ -630,7 +628,7 @@ bool checkForCompatibleGame(const char *filename) { break; } } - } */ + } /* if (proceedToLaunch) { // TODO: If the list gets large enough, switch to bsearch(). diff --git a/universal/include/incompatibleGameMap.h b/universal/include/incompatibleGameMap.h index 5cfa9b4782..28ae0f6770 100644 --- a/universal/include/incompatibleGameMap.h +++ b/universal/include/incompatibleGameMap.h @@ -4,8 +4,9 @@ // static const char incompatibleGameListB4DS[][4] = { // }; -// static const char incompatibleGameListFC[][4] = { -// }; +static const char incompatibleGameListFC[][4] = { + "AWK", // Tony Hawk's Downhill Jam +}; // static const char incompatibleGameList[][4] = { // };