Allow copy files from ramdrive to virtual

This commit is contained in:
d0k3 2016-11-28 23:37:47 +01:00
parent f5c0e6eb35
commit 1c636b1132

View File

@ -901,8 +901,8 @@ bool PathCopy(const char* destdir, const char* orig, u32* flags) {
int odrvtype = DriveType(orig); int odrvtype = DriveType(orig);
if ((ddrvtype | odrvtype) & DRV_VIRTUAL) { if ((ddrvtype | odrvtype) & DRV_VIRTUAL) {
// users are inventive... // users are inventive...
if (!(odrvtype & (DRV_SDCARD|DRV_VIRTUAL)) && (ddrvtype & DRV_VIRTUAL)) { if (!(odrvtype & (DRV_SDCARD|DRV_RAMDRIVE|DRV_VIRTUAL)) && (ddrvtype & DRV_VIRTUAL)) {
ShowPrompt(false, "Only files from SD card are accepted"); ShowPrompt(false, "Only files from SD card or\nramdrive are accepted");
return false; return false;
} }
return PathCopyVirtual(destdir, orig, flags); return PathCopyVirtual(destdir, orig, flags);