mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Bug fix
This commit is contained in:
parent
3ae0e539cc
commit
6f99365a8e
@ -553,15 +553,20 @@ string browseForFile (void) {
|
||||
|
||||
// Directory options
|
||||
if (entry->isDirectory && (held & KEY_R) && (pressed & KEY_A)) {
|
||||
int getOp = fileBrowse_A(entry, path);
|
||||
if (getOp == 1 || getOp == 2) {
|
||||
getDirectoryContents (dirContents); // Refresh directory listing
|
||||
if (getOp == 3 && nitroMounted) {
|
||||
screenOffset = 0;
|
||||
fileOffset = 0;
|
||||
if (strcmp(entry->name.c_str(), "..") == 0) {
|
||||
screenMode = 0;
|
||||
return "null";
|
||||
} else {
|
||||
int getOp = fileBrowse_A(entry, path);
|
||||
if (getOp == 1 || getOp == 2) {
|
||||
getDirectoryContents (dirContents); // Refresh directory listing
|
||||
if (getOp == 3 && nitroMounted) {
|
||||
screenOffset = 0;
|
||||
fileOffset = 0;
|
||||
}
|
||||
} else if (getOp == 4) {
|
||||
for (int i = 0; i < 15; i++) swiWaitForVBlank();
|
||||
}
|
||||
} else if (getOp == 4) {
|
||||
for (int i = 0; i < 15; i++) swiWaitForVBlank();
|
||||
}
|
||||
}
|
||||
|
||||
@ -577,11 +582,6 @@ string browseForFile (void) {
|
||||
fileOffset = 0;
|
||||
}
|
||||
|
||||
if (strcmp(entry->name.c_str(), "..")==0 && (pressed & KEY_R) && (pressed & KEY_A)) {
|
||||
screenMode = 0;
|
||||
return "null";
|
||||
}
|
||||
|
||||
// Rename file/folder
|
||||
if ((held & KEY_R) && (pressed & KEY_X) && (strcmp (entry->name.c_str(), "..") != 0) && (strncmp (path, "nitro:/", 7) != 0)) {
|
||||
pressed = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user