diff --git a/romsel_aktheme/arm9/source/perGameSettings.cpp b/romsel_aktheme/arm9/source/perGameSettings.cpp index 0fc2c0b6d1..c319c5e820 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 ? 0x1BD0000 : 0xBD0000) + ((sys().dsiWramAccess() && !sys().dsiWramMirrored()) ? ((!sys().arm7SCFGLocked() || *(u32*)0x02FFE1A0 != 0x00403000) ? 0x88000 : 0x80000) : 0); + u32 romSizeLimit = (ms().consoleModel > 0 ? 0x1BE0000 : 0xBE0000) + ((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 963f827cea..fe9749b157 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 ? 0x1BD0000 : 0xBD0000) + ((sys().dsiWramAccess() && !sys().dsiWramMirrored()) ? ((!sys().arm7SCFGLocked() || *(u32*)0x02FFE1A0 != 0x00403000) ? 0x88000 : 0x80000) : 0); + u32 romSizeLimit = (ms().consoleModel > 0 ? 0x1BE0000 : 0xBE0000) + ((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 2e7032772a..a5b629796a 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 ? 0x1BD0000 : 0xBD0000) + ((sys().dsiWramAccess() && !sys().dsiWramMirrored()) ? ((!sys().arm7SCFGLocked() || *(u32*)0x02FFE1A0 != 0x00403000) ? 0x88000 : 0x80000) : 0); + u32 romSizeLimit = (ms().consoleModel > 0 ? 0x1BE0000 : 0xBE0000) + ((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);