Skip to content

Commit

Permalink
Clear LCDC_BANK_C when loading .nds file
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Jan 31, 2025
1 parent e66e530 commit a0f0336
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions universal/source/nds_loader/nds_loader_arm9.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ int runNds (const void* loader, u32 loaderSize, u32 cluster, bool initDisc, bool
VRAM_C_CR = VRAM_ENABLE | VRAM_C_LCD;
// Load the loader/patcher into the correct address
tonccpy (LCDC_BANK_C, loader, loaderSize);
toncset (LCDC_BANK_C+loaderSize, 0, 0x20000-loaderSize);

// Set the parameters for the loader
// STORED_FILE_CLUSTER = cluster;
Expand Down

0 comments on commit a0f0336

Please sign in to comment.