From 83505c06c6058c1d6bb036adf313c1065395673e Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Fri, 20 Dec 2024 23:20:52 -0700 Subject: [PATCH] Increase pre-loadable ROM size limit by 64KB --- romsel_aktheme/arm9/source/perGameSettings.cpp | 2 +- romsel_dsimenutheme/arm9/source/perGameSettings.cpp | 2 +- romsel_r4theme/arm9/source/perGameSettings.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/romsel_aktheme/arm9/source/perGameSettings.cpp b/romsel_aktheme/arm9/source/perGameSettings.cpp index 6b8ee2f1a4..0fc2c0b6d1 100644 --- a/romsel_aktheme/arm9/source/perGameSettings.cpp +++ b/romsel_aktheme/arm9/source/perGameSettings.cpp @@ -470,7 +470,7 @@ void perGameSettings (std::string filename) { } } - u32 romSizeLimit = (ms().consoleModel > 0 ? 0x1BC0000 : 0xBC0000) + ((sys().dsiWramAccess() && !sys().dsiWramMirrored()) ? ((!sys().arm7SCFGLocked() || *(u32*)0x02FFE1A0 != 0x00403000) ? 0x88000 : 0x80000) : 0); + u32 romSizeLimit = (ms().consoleModel > 0 ? 0x1BD0000 : 0xBD0000) + ((sys().dsiWramAccess() && !sys().dsiWramMirrored()) ? ((!sys().arm7SCFGLocked() || *(u32*)0x02FFE1A0 != 0x00403000) ? 0x88000 : 0x80000) : 0); romSizeLimit -= 0x400000; // Account for DSi mode setting const u32 romSizeLimitTwl = (ms().consoleModel > 0 ? 0x1000000 : 0); diff --git a/romsel_dsimenutheme/arm9/source/perGameSettings.cpp b/romsel_dsimenutheme/arm9/source/perGameSettings.cpp index cc984b4dbe..963f827cea 100644 --- a/romsel_dsimenutheme/arm9/source/perGameSettings.cpp +++ b/romsel_dsimenutheme/arm9/source/perGameSettings.cpp @@ -515,7 +515,7 @@ void perGameSettings (std::string filename, bool* dsiBinariesFound, bool* dsiBin } } - u32 romSizeLimit = (ms().consoleModel > 0 ? 0x1BC0000 : 0xBC0000) + ((sys().dsiWramAccess() && !sys().dsiWramMirrored()) ? ((!sys().arm7SCFGLocked() || *(u32*)0x02FFE1A0 != 0x00403000) ? 0x88000 : 0x80000) : 0); + u32 romSizeLimit = (ms().consoleModel > 0 ? 0x1BD0000 : 0xBD0000) + ((sys().dsiWramAccess() && !sys().dsiWramMirrored()) ? ((!sys().arm7SCFGLocked() || *(u32*)0x02FFE1A0 != 0x00403000) ? 0x88000 : 0x80000) : 0); romSizeLimit -= 0x400000; // Account for DSi mode setting const u32 romSizeLimitTwl = (ms().consoleModel > 0 ? 0x1000000 : 0); diff --git a/romsel_r4theme/arm9/source/perGameSettings.cpp b/romsel_r4theme/arm9/source/perGameSettings.cpp index 7e1202beca..2e7032772a 100644 --- a/romsel_r4theme/arm9/source/perGameSettings.cpp +++ b/romsel_r4theme/arm9/source/perGameSettings.cpp @@ -473,7 +473,7 @@ void perGameSettings (std::string filename) { } } - u32 romSizeLimit = (ms().consoleModel > 0 ? 0x1BC0000 : 0xBC0000) + ((sys().dsiWramAccess() && !sys().dsiWramMirrored()) ? ((!sys().arm7SCFGLocked() || *(u32*)0x02FFE1A0 != 0x00403000) ? 0x88000 : 0x80000) : 0); + u32 romSizeLimit = (ms().consoleModel > 0 ? 0x1BD0000 : 0xBD0000) + ((sys().dsiWramAccess() && !sys().dsiWramMirrored()) ? ((!sys().arm7SCFGLocked() || *(u32*)0x02FFE1A0 != 0x00403000) ? 0x88000 : 0x80000) : 0); romSizeLimit -= 0x400000; // Account for DSi mode setting const u32 romSizeLimitTwl = (ms().consoleModel > 0 ? 0x1000000 : 0);