mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Allow file moving from SD to flashcard, and vice-versa
This commit is contained in:
parent
f56c7a0688
commit
4d940815ad
@ -286,7 +286,7 @@ bool fileBrowse_paste(char path[PATH_MAX]) {
|
||||
iprintf ("\x1b[%d;0H", ENTRIES_START_ROW);
|
||||
maxCursors++;
|
||||
printf(" Copy path\n");
|
||||
if (!clipboardInNitro && secondaryDrive == clipboardDrive) {
|
||||
if (!clipboardInNitro) {
|
||||
maxCursors++;
|
||||
printf(" Move path\n");
|
||||
}
|
||||
@ -323,7 +323,12 @@ bool fileBrowse_paste(char path[PATH_MAX]) {
|
||||
fcopy(clipboard, destPath);
|
||||
} else {
|
||||
printf("Moving...");
|
||||
rename(clipboard, destPath);
|
||||
if (secondaryDrive == clipboardDrive) {
|
||||
rename(clipboard, destPath);
|
||||
} else {
|
||||
fcopy(clipboard, destPath); // Copy file to destination, since renaming won't work
|
||||
remove(clipboard); // Delete source file after copying
|
||||
}
|
||||
}
|
||||
clipboardOn = false; // Clear clipboard after copying or moving
|
||||
return true;
|
||||
|
||||
@ -73,7 +73,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
bool yHeld = false;
|
||||
|
||||
snprintf(titleName, sizeof(titleName), "GodMode9i v%i.%i.%i", 1, 1, 0);
|
||||
snprintf(titleName, sizeof(titleName), "GodMode9i v%i.%i.%i", 1, 2, 0);
|
||||
|
||||
// initialize video mode
|
||||
videoSetMode(MODE_4_2D);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user