Skip to content

Commit 69b1de5

Browse files
committed
Show white screen when switching pages and changing ROM type
1 parent d39feb4 commit 69b1de5

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

romsel_dsimenutheme/arm9/source/fileBrowse.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ string browseForFile(const vector<string> extensionList, const char* username)
345345
}
346346
}
347347

348+
whiteScreen = false;
349+
348350
/* clearText(false);
349351
updatePath();
350352
TextPane *pane = &createTextPane(20, 3 + ENTRIES_START_ROW*FONT_SY, ENTRIES_PER_SCREEN);
@@ -420,6 +422,9 @@ string browseForFile(const vector<string> extensionList, const char* username)
420422
cursorPosition = 0;
421423
titleboxXpos = 0;
422424
titlewindowXpos = 0;
425+
whiteScreen = true;
426+
clearText(true);
427+
clearText(false);
423428
if (romtype == 1) romtype = 0;
424429
else romtype = 1;
425430
return "null";
@@ -529,6 +534,9 @@ string browseForFile(const vector<string> extensionList, const char* username)
529534
cursorPosition = 0;
530535
titleboxXpos = 0;
531536
titlewindowXpos = 0;
537+
whiteScreen = true;
538+
clearText(true);
539+
clearText(false);
532540
return "null";
533541
} else if ((pressed & KEY_R) && !titleboxXmoveleft && !titleboxXmoveright && file_count > 39+pagenum*39)
534542
{
@@ -537,6 +545,9 @@ string browseForFile(const vector<string> extensionList, const char* username)
537545
cursorPosition = 0;
538546
titleboxXpos = 0;
539547
titlewindowXpos = 0;
548+
whiteScreen = true;
549+
clearText(true);
550+
clearText(false);
540551
return "null";
541552
}
542553

romsel_dsimenutheme/arm9/source/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#include "soundbank_bin.h"
4848

4949
bool renderScreens = true;
50-
bool whiteScreen = false;
50+
bool whiteScreen = true;
5151

5252
const char* settingsinipath = "sd:/_nds/srloader/settings.ini";
5353
const char* bootstrapinipath = "sd:/_nds/nds-bootstrap.ini";
@@ -376,6 +376,7 @@ int main(int argc, char **argv) {
376376
showSTARTborder = false;
377377
graphicsInit();
378378
fontInit();
379+
whiteScreen = false;
379380
printLarge(false, 64, 32, "fatinitDefault failed!");
380381

381382
// Control the DSi Menu, but can't launch anything.

0 commit comments

Comments
 (0)