Don't enable "full iso ram caching" for filetypes other than ISO.

This commit is contained in:
Henrik Rydgård committed 2025-03-06 13:57:05 +01:00
1 parent 87199bacaa
commit c36375d6c8
1 file changed
+9 -1
+9 -1
View File
@@ -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