mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Show POWER button text on bottom
This commit is contained in:
parent
6c92790645
commit
a156cd25e1
@ -60,16 +60,18 @@ void driveMenu (void) {
|
||||
printf ("[fat:] GAMECART\n");
|
||||
printf ("(Flashcart FAT)");
|
||||
}
|
||||
iprintf ("\x1b[%i;0H", 23-isDSiMode());
|
||||
iprintf ("\x1b[%i;0H", 22-isDSiMode());
|
||||
printf (titleName);
|
||||
if (isDSiMode()) {
|
||||
printf ("\x1b[23;0H");
|
||||
printf ("\x1b[22;0H");
|
||||
if (sdMounted) {
|
||||
printf ("R+B - Unmount SD card");
|
||||
} else {
|
||||
printf ("R+B - Remount SD card");
|
||||
}
|
||||
}
|
||||
printf ("\x1b[23;0H");
|
||||
printf (isRegularDS ? POWERTEXT_DS : POWERTEXT);
|
||||
|
||||
consoleInit(NULL, 0, BgType_Text4bpp, BgSize_T_256x256, 15, 0, true, true);
|
||||
|
||||
|
||||
@ -160,10 +160,12 @@ string browseForFile (void) {
|
||||
fileSize = getFileSize(entry->name.c_str());
|
||||
printf ("%i Bytes", (int)fileSize);
|
||||
}
|
||||
printf ("\x1b[22;0H");
|
||||
printf ("\x1b[21;0H");
|
||||
printf (titleName);
|
||||
printf ("\x1b[23;0H");
|
||||
printf ("\x1b[22;0H");
|
||||
printf ("X - DELETE");
|
||||
printf ("\x1b[23;0H");
|
||||
printf (isRegularDS ? POWERTEXT_DS : POWERTEXT);
|
||||
|
||||
consoleInit(NULL, 0, BgType_Text4bpp, BgSize_T_256x256, 15, 0, true, true);
|
||||
showDirectoryContents (dirContents, screenOffset);
|
||||
|
||||
@ -39,6 +39,8 @@ char titleName[32] = {" "};
|
||||
|
||||
int screenMode = 0;
|
||||
|
||||
bool isRegularDS = true;
|
||||
|
||||
bool applaunch = false;
|
||||
|
||||
static int bg3;
|
||||
@ -103,6 +105,11 @@ int main(int argc, char **argv) {
|
||||
swiWaitForVBlank();
|
||||
}
|
||||
|
||||
fifoWaitValue32(FIFO_USER_06);
|
||||
u16 arm7_SNDEXCNT = fifoGetValue32(FIFO_USER_07);
|
||||
if (arm7_SNDEXCNT != 0) isRegularDS = false; // If sound frequency setting is found, then the console is not a DS Phat/Lite
|
||||
fifoSendValue32(FIFO_USER_07, 0);
|
||||
|
||||
/*if (!fatInitDefault()) {
|
||||
consoleClear();
|
||||
iprintf ("fatinitDefault failed!\n");
|
||||
|
||||
@ -1,10 +1,15 @@
|
||||
#ifndef MAIN_H
|
||||
#define MAIN_H
|
||||
|
||||
#define POWERTEXT_DS "POWER - Poweroff"
|
||||
#define POWERTEXT "POWER - Reboot/[+held] Poweroff"
|
||||
|
||||
extern char titleName[32];
|
||||
|
||||
extern int screenMode;
|
||||
|
||||
extern bool isRegularDS;
|
||||
|
||||
extern bool applaunch;
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user