From c36375d6c8a6ef285ff8e976896aad5e299cc2c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 6 Mar 2025 13:57:05 +0100 Subject: [PATCH] Don't enable "full iso ram caching" for filetypes other than ISO. --- Core/System.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Core/System.cpp b/Core/System.cpp index b3b1081485..56ce4ef203 100644 --- a/Core/System.cpp +++ b/Core/System.cpp @@ -409,7 +409,15 @@ bool PSP_InitStart(const CoreParameter &coreParam, std::string *error_string) { FileLoader *loadedFile = ResolveFileLoaderTarget(ConstructFileLoader(filename)); #if PPSSPP_ARCH(AMD64) if (g_Config.bCacheFullIsoInRam) { - loadedFile = new RamCachingFileLoader(loadedFile); + switch (coreParam.fileType) { + case IdentifiedFileType::PSP_ISO: + case IdentifiedFileType::PSP_ISO_NP: + loadedFile = new RamCachingFileLoader(loadedFile); + break; + default: + INFO_LOG(Log::System, "RAM caching is on, but file is not an ISO, so ignoring"); + break; + } } #endif