diff --git a/arm9/source/file_browse.cpp b/arm9/source/file_browse.cpp index 898db0c..e46f640 100644 --- a/arm9/source/file_browse.cpp +++ b/arm9/source/file_browse.cpp @@ -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..."); diff --git a/arm9/source/main.cpp b/arm9/source/main.cpp index fd08790..c0c8dff 100644 --- a/arm9/source/main.cpp +++ b/arm9/source/main.cpp @@ -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);