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
7551e66f59
commit
3b06f2fc93
@ -244,6 +244,7 @@ int fileBrowse_A(DirEntry* entry, char path[PATH_MAX]) {
|
||||
snprintf(destPath, sizeof(destPath), "sd:/gm9i/out/%s", entry->name.c_str());
|
||||
iprintf ("\x1b[%d;3H", optionOffset + ENTRIES_START_ROW+cursorScreenPos);
|
||||
printf("Copying... ");
|
||||
remove(destPath);
|
||||
fcopy(entry->name.c_str(), destPath);
|
||||
} else if (assignedOp[optionOffset] == 2) {
|
||||
if (access("fat:/gm9i", F_OK) != 0) {
|
||||
@ -260,6 +261,7 @@ int fileBrowse_A(DirEntry* entry, char path[PATH_MAX]) {
|
||||
snprintf(destPath, sizeof(destPath), "fat:/gm9i/out/%s", entry->name.c_str());
|
||||
iprintf ("\x1b[%d;3H", optionOffset + ENTRIES_START_ROW+cursorScreenPos);
|
||||
printf("Copying... ");
|
||||
remove(destPath);
|
||||
fcopy(entry->name.c_str(), destPath);
|
||||
} else if (assignedOp[optionOffset] == 3) {
|
||||
nitroMounted = nitroFSInit(entry->name.c_str());
|
||||
@ -322,6 +324,7 @@ bool fileBrowse_paste(char path[PATH_MAX]) {
|
||||
iprintf ("\x1b[%d;3H", optionOffset + ENTRIES_START_ROW);
|
||||
if (optionOffset == 0) {
|
||||
printf("Copying...");
|
||||
remove(destPath);
|
||||
fcopy(clipboard, destPath);
|
||||
} else {
|
||||
printf("Moving...");
|
||||
|
||||
@ -73,7 +73,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
bool yHeld = false;
|
||||
|
||||
snprintf(titleName, sizeof(titleName), "GodMode9i v%i.%i.%i", 1, 2, 0);
|
||||
snprintf(titleName, sizeof(titleName), "GodMode9i v%i.%i.%i", 1, 2, 1);
|
||||
|
||||
// initialize video mode
|
||||
videoSetMode(MODE_4_2D);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user