Skip to content

Commit 42521ca

Browse files
committed
Change default ROM location
ALSO: Show username in DS and 3DS themes
1 parent d028164 commit 42521ca

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

romsel_dsimenutheme/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ int main(int argc, char **argv) {
311311
extensionList.push_back(".argv");
312312
srand(time(NULL));
313313

314-
if (romfolder == "") romfolder = "nds";
314+
if (romfolder == "") romfolder = "roms/nds";
315315

316316
char path[256];
317317
snprintf (path, sizeof(path), "sd:/%s", romfolder.c_str());

romsel_dsmenutheme/source/fileBrowse.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ bool isTopLevel(const char *path)
233233
#endif
234234
}
235235

236-
string browseForFile(const vector<string> extensionList)
236+
string browseForFile(const vector<string> extensionList, const char* username)
237237
{
238238
int pressed = 0;
239239
int screenOffset = 0;
@@ -261,6 +261,7 @@ string browseForFile(const vector<string> extensionList)
261261
cursor->delay = TextEntry::ACTIVE;
262262

263263
iconTitleUpdate(dirContents[scrn].at(fileOffset).isDirectory, dirContents[scrn].at(fileOffset).name.c_str());
264+
printSmall(true, 1, 3, username);
264265

265266
// Power saving loop. Only poll the keys once per frame and sleep the CPU if there is nothing else to do
266267
do

romsel_dsmenutheme/source/fileBrowse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
//#define EMULATE_FILES
2929

30-
std::string browseForFile(const std::vector<std::string> extensionList);
30+
std::string browseForFile(const std::vector<std::string> extensionList, const char* username);
3131

3232

3333

romsel_dsmenutheme/source/graphics/graphics.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void vBlankHandler()
111111
}
112112
else
113113
{
114-
if (theme == 1) glBoxFilled(0, 0, 256, 192, RGB15(220, 220, 210));
114+
if (theme == 2) glBoxFilled(0, 0, 256, 192, RGB15(220, 220, 210));
115115
else drawBG(subBgImage);
116116
glColor(RGB15(31, 31, 31));
117117
updateText(renderingTop);
@@ -161,7 +161,7 @@ void graphicsInit()
161161
(u8*) sub_bgBitmap // image data generated by GRIT
162162
);
163163

164-
if (theme == 1) {
164+
if (theme == 2) {
165165
mainBgTexID = glLoadTileSet(mainBgImage, // pointer to glImage array
166166
16, // sprite width
167167
16, // sprite height

romsel_dsmenutheme/source/iconTitle.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#define TEXT_WIDTH ((20-4)*8/6)
3939

4040
#define BOX_PX (9*8)
41-
#define BOX_PY (10*8)
41+
#define BOX_PY (80-2)
4242

4343
// 3DS HOME Menu theme
4444
#define ICON_POS_X2 112
@@ -70,7 +70,7 @@ void iconTitleInit()
7070

7171
static inline void writeRow(int rownum, const char* text)
7272
{
73-
if (theme == 1) printSmallCentered(true, BOX_PY2 + FONT_SY * rownum, text);
73+
if (theme == 2) printSmallCentered(true, BOX_PY2 + FONT_SY * rownum, text);
7474
else printSmall(true, BOX_PX + FONT_SX, BOX_PY + FONT_SY * rownum, text);
7575
}
7676

@@ -118,7 +118,7 @@ static void clearIcon(void)
118118

119119
void drawIcon()
120120
{
121-
if (theme == 1) glSprite(ICON_POS_X2, ICON_POS_Y2, GL_FLIP_NONE, icon);
121+
if (theme == 2) glSprite(ICON_POS_X2, ICON_POS_Y2, GL_FLIP_NONE, icon);
122122
else glSprite(ICON_POS_X, ICON_POS_Y, GL_FLIP_NONE, icon);
123123
}
124124

romsel_dsmenutheme/source/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ int main(int argc, char **argv) {
159159
extensionList.push_back(".argv");
160160
srand(time(NULL));
161161

162-
if (romfolder == "") romfolder = "nds";
162+
if (romfolder == "") romfolder = "roms/nds";
163163

164164
char path[256];
165165
snprintf (path, sizeof(path), "sd:/%s", romfolder.c_str());
@@ -169,7 +169,7 @@ int main(int argc, char **argv) {
169169
while(1) {
170170

171171
//Navigates to the file to launch
172-
filename = browseForFile(extensionList);
172+
filename = browseForFile(extensionList, username);
173173

174174
////////////////////////////////////
175175
// Launch the item

0 commit comments

Comments
 (0)