This commit is contained in:
d0k3 2017-02-28 15:57:14 +01:00
parent 0aec26cfcf
commit a96df06041
2 changed files with 11 additions and 8 deletions

View File

@ -40,6 +40,13 @@
#define ENTRY_BRAHMA (1) #define ENTRY_BRAHMA (1)
#define ENTRY_GATEWAY (2) #define ENTRY_GATEWAY (2)
// GodMode9 / SafeMode9 ("flavor")
#ifndef SAFEMODE
#define FLAVOR "GodMode9"
#else
#define FLAVOR "SafeMode9"
#endif
// GodMode9 version // GodMode9 version
#define VERSION "1.0.2" #define VERSION "1.0.2"

View File

@ -76,7 +76,7 @@ void DrawUserInterface(const char* curr_path, DirEntry* curr_entry, DirStruct* c
DrawStringF(TOP_SCREEN, bartxt_rx, bartxt_start, COLOR_STD_BG, COLOR_TOP_BAR, "%19.19s", tempstr); DrawStringF(TOP_SCREEN, bartxt_rx, bartxt_start, COLOR_STD_BG, COLOR_TOP_BAR, "%19.19s", tempstr);
} else { } else {
DrawStringF(TOP_SCREEN, bartxt_x, bartxt_start, COLOR_STD_BG, COLOR_TOP_BAR, "[root]"); DrawStringF(TOP_SCREEN, bartxt_x, bartxt_start, COLOR_STD_BG, COLOR_TOP_BAR, "[root]");
DrawStringF(TOP_SCREEN, bartxt_rx, bartxt_start, COLOR_STD_BG, COLOR_TOP_BAR, "%19.19s", "GodMode9"); DrawStringF(TOP_SCREEN, bartxt_rx, bartxt_start, COLOR_STD_BG, COLOR_TOP_BAR, "%19.19s", FLAVOR);
} }
// left top - current file info // left top - current file info
@ -137,12 +137,8 @@ void DrawUserInterface(const char* curr_path, DirEntry* curr_entry, DirStruct* c
// bottom: inctruction block // bottom: inctruction block
char instr[512]; char instr[512];
snprintf(instr, 512, "%s%s\n%s%s%s%s%s%s%s%s", snprintf(instr, 512, "%s\n%s%s%s%s%s%s%s%s",
#ifndef SAFEMODE FLAVOR " Explorer v"VERSION, // generic start part
"GodMode9 Explorer v", VERSION, // generic start part
#else
"SafeMode9 Explorer v", VERSION, // generic start part
#endif
(*curr_path) ? ((clipboard->n_entries == 0) ? "L - MARK files (use with \x18\x19\x1A\x1B)\nX - DELETE / [+R] RENAME file(s)\nY - COPY file(s) / [+R] CREATE dir\n" : (*curr_path) ? ((clipboard->n_entries == 0) ? "L - MARK files (use with \x18\x19\x1A\x1B)\nX - DELETE / [+R] RENAME file(s)\nY - COPY file(s) / [+R] CREATE dir\n" :
"L - MARK files (use with \x18\x19\x1A\x1B)\nX - DELETE / [+R] RENAME file(s)\nY - PASTE file(s) / [+R] CREATE dir\n") : "L - MARK files (use with \x18\x19\x1A\x1B)\nX - DELETE / [+R] RENAME file(s)\nY - PASTE file(s) / [+R] CREATE dir\n") :
((GetWritePermissions() > PERM_BASE) ? "R+Y - Relock write permissions\n" : ""), ((GetWritePermissions() > PERM_BASE) ? "R+Y - Relock write permissions\n" : ""),