From 13da4913c93fde782dde8c493191e02f68ab20ef Mon Sep 17 00:00:00 2001 From: Pengfei Date: Tue, 31 Aug 2021 15:35:14 +0800 Subject: [PATCH] Add a check in LoadPresetConfig --- src/core/importer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/importer.cpp b/src/core/importer.cpp index 6cee38e..c01623a 100644 --- a/src/core/importer.cpp +++ b/src/core/importer.cpp @@ -1207,6 +1207,12 @@ std::vector LoadPresetConfig(std::string mount_point) { if (!FileUtil::IsDirectory(nand_dir)) { return true; } + if (virtual_name != SysNANDName && + virtual_name.substr(0, EmuNANDPrefix.size()) != EmuNANDPrefix) { + + // Not a NAND folder + return true; + } Config::NandConfig config; config.nand_name = virtual_name;