From 1c636b113288405e6264fb923239942c13f4b8f1 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Mon, 28 Nov 2016 23:37:47 +0100 Subject: [PATCH] Allow copy files from ramdrive to virtual --- source/fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fs.c b/source/fs.c index 99729fd..d163698 100644 --- a/source/fs.c +++ b/source/fs.c @@ -901,8 +901,8 @@ bool PathCopy(const char* destdir, const char* orig, u32* flags) { int odrvtype = DriveType(orig); if ((ddrvtype | odrvtype) & DRV_VIRTUAL) { // users are inventive... - if (!(odrvtype & (DRV_SDCARD|DRV_VIRTUAL)) && (ddrvtype & DRV_VIRTUAL)) { - ShowPrompt(false, "Only files from SD card are accepted"); + if (!(odrvtype & (DRV_SDCARD|DRV_RAMDRIVE|DRV_VIRTUAL)) && (ddrvtype & DRV_VIRTUAL)) { + ShowPrompt(false, "Only files from SD card or\nramdrive are accepted"); return false; } return PathCopyVirtual(destdir, orig, flags);