This commit is contained in:
RocketRobz 2018-10-22 16:29:18 -06:00
parent a7957f124a
commit 329b19a21f

View File

@ -553,7 +553,7 @@ string browseForFile (void) {
} }
// Rename file/folder // Rename file/folder
if ((held & KEY_R) && (pressed & KEY_X)) { if ((held & KEY_R) && (pressed & KEY_X) && (strcmp (entry->name.c_str(), "..") != 0) && (strncmp (path, "nitro:/", 7) != 0)) {
pressed = 0; pressed = 0;
consoleDemoInit(); consoleDemoInit();
Keyboard *kbd = keyboardDemoInit(); Keyboard *kbd = keyboardDemoInit();
@ -614,7 +614,7 @@ string browseForFile (void) {
} }
// Create new folder // Create new folder
if ((held & KEY_R) && (pressed & KEY_Y)) { if ((held & KEY_R) && (pressed & KEY_Y) && (strncmp (path, "nitro:/", 7) != 0)) {
pressed = 0; pressed = 0;
consoleDemoInit(); consoleDemoInit();
Keyboard *kbd = keyboardDemoInit(); Keyboard *kbd = keyboardDemoInit();