diff --git a/source/fs.c b/source/fs.c index 4078163..62c0ef2 100644 --- a/source/fs.c +++ b/source/fs.c @@ -431,7 +431,10 @@ bool PathCopyWorker(char* dest, char* orig, bool overwrite, bool move) { strncpy(dname, oname, 256 - (dname - dest)); // check if destination is part of or equal origin - if (strncmp(dest, orig, strnlen(orig, 255)) == 0) { + if (strncmp(dest, orig, 255) == 0) { + if (!ShowInputPrompt(dname, 255 - (dname - dest), "Destination is equal to origin\nChoose another name?")) + return false; + } else if (strncmp(dest, orig, strnlen(orig, 255)) == 0) { if ((dest[strnlen(orig, 255)] == '/') || (dest[strnlen(orig, 255)] == '\0')) { ShowPrompt(false, "Error: Destination is part of origin"); return false; diff --git a/source/godmode.c b/source/godmode.c index da93a04..79abadb 100644 --- a/source/godmode.c +++ b/source/godmode.c @@ -7,7 +7,7 @@ #include "virtual.h" #include "image.h" -#define VERSION "0.4.4" +#define VERSION "0.4.5" #define N_PANES 2 #define IMG_DRV "789I"