From c4d2ffff905740584dde33c398b72d171f9df1a6 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Fri, 1 Jul 2016 00:35:10 +0200 Subject: [PATCH] Correctly handle ImgNAND virtual permissions --- source/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/fs.c b/source/fs.c index 190ca93..c2a7a07 100644 --- a/source/fs.c +++ b/source/fs.c @@ -95,7 +95,7 @@ bool CheckWritePermissions(const char* path) { } else if (((pdrv >= 4) && (pdrv <= 6)) || (GetVirtualSource(path) == VRT_EMUNAND)) { perm = PERM_EMUNAND; snprintf(area_name, 16, "the EmuNAND"); - } else if ((pdrv >= 7) && (pdrv <= 9)) { + } else if (((pdrv >= 7) && (pdrv <= 9)) || (GetVirtualSource(path) == VRT_IMGNAND)) { perm = PERM_IMAGE; snprintf(area_name, 16, "images"); } else if (GetVirtualSource(path) == VRT_MEMORY) {