Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Oct 22, 2018
1 parent a7957f1 commit 329b19a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arm9/source/file_browse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ string browseForFile (void) {
}

// 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;
consoleDemoInit();
Keyboard *kbd = keyboardDemoInit();
Expand Down Expand Up @@ -614,7 +614,7 @@ string browseForFile (void) {
}

// Create new folder
if ((held & KEY_R) && (pressed & KEY_Y)) {
if ((held & KEY_R) && (pressed & KEY_Y) && (strncmp (path, "nitro:/", 7) != 0)) {
pressed = 0;
consoleDemoInit();
Keyboard *kbd = keyboardDemoInit();
Expand Down

0 comments on commit 329b19a

Please sign in to comment.