mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
Remove half-copied files
This commit is contained in:
parent
d83ad781ee
commit
eaef2e8dcf
@ -457,6 +457,7 @@ bool PathCopyVirtual(const char* destdir, const char* orig) {
|
|||||||
}
|
}
|
||||||
ShowProgress(1, 1, orig);
|
ShowProgress(1, 1, orig);
|
||||||
f_close(&dfile);
|
f_close(&dfile);
|
||||||
|
if (!ret) f_unlink(dest);
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -596,6 +597,7 @@ bool PathCopyWorker(char* dest, char* orig, bool overwrite, bool move) {
|
|||||||
|
|
||||||
f_close(&ofile);
|
f_close(&ofile);
|
||||||
f_close(&dfile);
|
f_close(&dfile);
|
||||||
|
if (!ret) f_unlink(dest);
|
||||||
}
|
}
|
||||||
|
|
||||||
*(--dname) = '\0';
|
*(--dname) = '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user