mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Fix time text clearing
This commit is contained in:
parent
7a9fcbe092
commit
4028963b72
@ -50,8 +50,10 @@ void gbaCartDump(void) {
|
||||
int pressed = 0;
|
||||
|
||||
printf ("\x1b[0;27H");
|
||||
printf (" "); // Clear time
|
||||
printf ("\x1B[42m"); // Print green color
|
||||
printf ("_____"); // Clear time
|
||||
consoleInit(NULL, 1, BgType_Text4bpp, BgSize_T_256x256, 15, 0, false, true);
|
||||
printf ("\x1B[47m"); // Print foreground white color
|
||||
printf("Dump GBA cart ROM to\n");
|
||||
printf("\"fat:/gm9i/out\"?\n");
|
||||
printf("(<A> yes, <B> no)");
|
||||
|
||||
@ -185,8 +185,10 @@ int fileBrowse_A(DirEntry* entry, char path[PATH_MAX]) {
|
||||
int maxCursors = -1;
|
||||
|
||||
printf ("\x1b[0;27H");
|
||||
printf (" "); // Clear time
|
||||
printf ("\x1B[42m"); // Print green color
|
||||
printf ("_____"); // Clear time
|
||||
consoleInit(NULL, 1, BgType_Text4bpp, BgSize_T_256x256, 15, 0, false, true);
|
||||
printf ("\x1B[47m"); // Print foreground white color
|
||||
char fullPath[256];
|
||||
snprintf(fullPath, sizeof(fullPath), "%s%s", path, entry->name.c_str());
|
||||
printf(fullPath);
|
||||
@ -306,8 +308,10 @@ bool fileBrowse_paste(char path[PATH_MAX]) {
|
||||
int maxCursors = -1;
|
||||
|
||||
printf ("\x1b[0;27H");
|
||||
printf (" "); // Clear time
|
||||
printf ("\x1B[42m"); // Print green color
|
||||
printf ("_____"); // Clear time
|
||||
consoleInit(NULL, 1, BgType_Text4bpp, BgSize_T_256x256, 15, 0, false, true);
|
||||
printf ("\x1B[47m"); // Print foreground white color
|
||||
printf("Paste file here?\n\n");
|
||||
iprintf ("\x1b[%d;0H", OPTIONS_ENTRIES_START_ROW);
|
||||
maxCursors++;
|
||||
@ -507,8 +511,10 @@ string browseForFile (void) {
|
||||
// Delete file/folder
|
||||
if ((pressed & KEY_X) && (strcmp (entry->name.c_str(), "..") != 0) && (strncmp (path, "nitro:/", 7) != 0)) {
|
||||
printf ("\x1b[0;27H");
|
||||
printf (" "); // Clear time
|
||||
printf ("\x1B[42m"); // Print green color
|
||||
printf ("_____"); // Clear time
|
||||
consoleInit(NULL, 1, BgType_Text4bpp, BgSize_T_256x256, 15, 0, false, true);
|
||||
printf ("\x1B[47m"); // Print foreground white color
|
||||
iprintf("Delete \"%s\"?\n", entry->name.c_str());
|
||||
printf ("(<A> yes, <B> no)");
|
||||
while (true) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user