Skip to content

Commit

Permalink
Fix #1652
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Nov 16, 2023
1 parent a7c332f commit 43c946c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions retail/bootloaderi/source/arm7/main.arm7.c
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,7 @@ int arm7_main(void) {
}
if (gameOnFlashcard || !isDSiWare) {
extern u32 clusterCacheSize;
clusterCacheSize = 0x14000;
clusterCacheSize = 0x10000;
if (dsiModeConfirmed && ROMsupportsDsiMode(&dsiHeaderTemp.ndshdr)) {
clusterCacheSize = 0x2000;
}
Expand Down Expand Up @@ -1589,13 +1589,13 @@ int arm7_main(void) {
extern u32* lastClusterCacheUsed;
extern u32 clusterCache;

u32 add = (moduleParams->sdk_version >= 0x2008000 || moduleParams->sdk_version == 0x20029A8) ? 0xC4000 : 0xE8000; // 0x027C4000 : 0x027E8000
tonccpy((char*)0x02700000+add, (char*)0x02700000, 0x14000); // Move FAT table cache elsewhere
u32 add = (moduleParams->sdk_version >= 0x2008000 || moduleParams->sdk_version == 0x20029A8) ? 0xC8000 : 0xE8000; // 0x027C8000 : 0x027E8000
tonccpy((char*)0x02700000+add, (char*)0x02700000, 0x10000); // Move FAT table cache elsewhere
romFile->fatTableCache = (u32*)((u32)romFile->fatTableCache+add);
savFile->fatTableCache = (u32*)((u32)savFile->fatTableCache+add);
lastClusterCacheUsed = (u32*)((u32)lastClusterCacheUsed+add);
clusterCache += add;
toncset((char*)0x02700000, 0, 0x14000);
toncset((char*)0x02700000, 0, 0x10000);
}

//if (gameOnFlashcard || !isDSiWare || !dsiWramAccess) {
Expand Down

0 comments on commit 43c946c

Please sign in to comment.