From 1e4be5fe61bcb6d559762011739d23e87233d2f9 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Mon, 9 Jan 2017 20:07:36 +0100 Subject: [PATCH] Lower restrictions on FAT -> virtual copy operations --- source/fs/fsutil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/fs/fsutil.c b/source/fs/fsutil.c index d479af9..6a2a180 100644 --- a/source/fs/fsutil.c +++ b/source/fs/fsutil.c @@ -750,9 +750,9 @@ bool PathCopy(const char* destdir, const char* orig, u32* flags) { PathCopyWorker(fdpath, fopath, flags, false); return res; } else if (!(odrvtype & DRV_VIRTUAL)) { // FAT to virtual - if (!(odrvtype & (DRV_SDCARD|DRV_RAMDRIVE))) { - ShowPrompt(false, "Only files from SD card or\nramdrive are accepted"); - return false; + if (odrvtype & ddrvtype & (DRV_SYSNAND|DRV_EMUNAND|DRV_IMAGE)) { + ShowPrompt(false, "Copy operation is not allowed"); + return false; // prevent illegal operations } return PathCopyFatToVrt(destdir, orig); } else return PathCopyVrtToVrt(destdir, orig); // virtual to virtual