From e4554fe9caab129f1bdab9536b019d7b705a2c35 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Tue, 21 Jun 2022 18:26:35 +0100 Subject: [PATCH] CDVD: Load GZip index location direct from ini. Stops the Qt game list from putting indexes in the default location when a custom one is used. --- pcsx2/CDVD/GzippedFileReader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcsx2/CDVD/GzippedFileReader.cpp b/pcsx2/CDVD/GzippedFileReader.cpp index 5387210cab..a46ed3cfc9 100644 --- a/pcsx2/CDVD/GzippedFileReader.cpp +++ b/pcsx2/CDVD/GzippedFileReader.cpp @@ -27,6 +27,8 @@ #include "gui/StringHelpers.h" #include "gui/wxDirName.h" #include +#else +#include "HostSettings.h" #endif #define CLAMP(val, minval, maxval) (std::min(maxval, std::max(minval, val))) @@ -182,10 +184,11 @@ static std::string iso2indexname(const std::string& isoname) #ifndef PCSX2_CORE std::string appRoot = // TODO: have only one of this in PCSX2. Right now have few... StringUtil::wxStringToUTF8String(((wxDirName)(wxFileName(wxStandardPaths::Get().GetExecutablePath()).GetPath())).ToString()); + return ApplyTemplate("gzip index", appRoot, EmuConfig.GzipIsoIndexTemplate, isoname, false); #else const std::string& appRoot = EmuFolders::DataRoot; + return ApplyTemplate("gzip index", appRoot, Host::GetBaseStringSettingValue("EmuCore", "GzipIsoIndexTemplate", "$(f).pindex.tmp"), isoname, false); #endif - return ApplyTemplate("gzip index", appRoot, EmuConfig.GzipIsoIndexTemplate, isoname, false); }