Skip to content

Commit e8dd2ab

Browse files
committed
bug fixes
1 parent 80f64c1 commit e8dd2ab

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

romsel_dsimenutheme/arm9/source/fileBrowse.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ bool settingsChanged = false;
103103

104104
extern void SaveSettings();
105105

106+
extern std::string ReplaceAll(std::string str, const std::string& from, const std::string& to);
107+
106108
extern void loadGameOnFlashcard(const char* filename);
107109

108110
mm_sound_effect snd_launch;
@@ -895,6 +897,7 @@ string browseForFile(const vector<string> extensionList, const char* username)
895897
&& !titleboxXmoveleft && !titleboxXmoveright && showSTARTborder && !flashcardUsed)
896898
{
897899
arm7DonorPath = "sd:/"+romfolder+"/"+dirContents[scrn].at(cursorPosition+pagenum*40).name.c_str();
900+
arm7DonorPath = ReplaceAll(arm7DonorPath, "sd:/sd:/", "sd:/"); // Fix for if romfolder has "sd:/"
898901
int yPos = 160;
899902
if (theme == 1) yPos -= 4;
900903
printSmallCentered(false, yPos, "Donor ROM is set.");

romsel_dsimenutheme/arm9/source/graphics/graphics.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ void vBlankHandler()
543543
spawnedboxXpos += 64;
544544
iconXpos += 64;
545545
}
546+
if (theme == 0) glSprite(spawnedboxXpos+10-startMenu_titleboxXpos, 80, GL_FLIP_H, braceImage);
546547
} else {
547548
for(int i = 0; i < 40; i++) {
548549
if (theme == 0) {
@@ -572,6 +573,7 @@ void vBlankHandler()
572573
spawnedboxXpos += 64;
573574
iconXpos += 64;
574575
}
576+
if (theme == 0) glSprite(spawnedboxXpos+10-titleboxXpos, 80, GL_FLIP_H, braceImage);
575577
}
576578
if (applaunchprep && theme==0) {
577579
// Cover selected app
@@ -603,7 +605,6 @@ void vBlankHandler()
603605
titleboxYmovepos += 5;
604606
if (titleboxYmovepos > 240) whiteScreen = true;
605607
}
606-
if (theme == 0) glSprite(spawnedboxXpos+10-titleboxXpos, 80, GL_FLIP_H, braceImage);
607608
if (showSTARTborder) {
608609
glColor(RGB15(colorRvalue, colorGvalue, colorBvalue));
609610
if (theme == 1) {

0 commit comments

Comments
 (0)