Skip to content

Commit 7a7211c

Browse files
committed
booter: minor change
1 parent 316b6c2 commit 7a7211c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

booter/arm9/source/graphics/graphics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void graphicsInit()
143143
// Set up enough texture memory for our textures
144144
// Bank A is just 128kb and we are using 194 kb of
145145
// sprites
146-
vramSetBankA(VRAM_A_TEXTURE);
146+
//vramSetBankA(VRAM_A_TEXTURE);
147147
vramSetBankB(VRAM_B_TEXTURE);
148148

149149
vramSetBankF(VRAM_F_TEX_PALETTE); // Allocate VRAM bank for all the palettes

booter/arm9/source/main.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ int main(int argc, char **argv) {
113113
stop();
114114
}
115115

116-
runNdsFile ("/_nds/dsimenuplusplus/main.srldr", 0, NULL);
116+
int err = runNdsFile ("/_nds/dsimenuplusplus/main.srldr", 0, NULL);
117117

118118
if(!graphicsInited) {
119119
graphicsInit();
@@ -123,8 +123,15 @@ int main(int argc, char **argv) {
123123
}
124124

125125
clearText();
126-
printSmall(false, 4, 4, "sd:/_nds/dsimenuplusplus/");
127-
printSmall(false, 4, 12, "main.srldr not found.");
126+
if (err == 1) {
127+
printSmall(false, 4, 4, "sd:/_nds/dsimenuplusplus/");
128+
printSmall(false, 4, 12, "main.srldr not found.");
129+
} else {
130+
char errorText[16];
131+
snprintf(errorText, sizeof(errorText), "Error %i", err);
132+
printSmall(false, 4, 4, "Unable to start main.srldr");
133+
printSmall(false, 4, 12, errorText);
134+
}
128135
printSmall(false, 4, 28, "Press B to return to menu.");
129136

130137
while (1) {

0 commit comments

Comments
 (0)