Skip to content

Commit

Permalink
Clear 3DS rotating cubes video before freeing
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Jan 19, 2024
1 parent a779c93 commit 68a58e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions romsel_dsimenutheme/arm9/source/graphics/ThemeTextures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,7 @@ void loadRotatingCubes() {
}
void ThemeTextures::unloadRotatingCubes() {
if (dsiFeatures() && !ms().macroMode && ms().theme == TWLSettings::ETheme3DS && ms().consoleModel == 0) {
toncset32(rotatingCubesLocation, 0, 0x700000/sizeof(u32)); // Clear video before freeing
delete[] rotatingCubesLocation;
}
}
Expand Down

0 comments on commit 68a58e6

Please sign in to comment.