mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 13:00:15 +02:00
Merge pull request #5151 from bylaws/getcache
Common: Use LOCALAPPDATA for GetCacheDirectory on WOW64/ARM64EC
This commit is contained in:
1 file changed
+5
@@ -622,6 +622,7 @@ fextl::string GetCacheDirectory() {
|
||||
return CacheOverride;
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
#ifdef FEX_STEAM_SUPPORT
|
||||
const char* SteamDataPath = getenv("STEAM_COMPAT_SHADER_PATH");
|
||||
if (SteamDataPath) {
|
||||
@@ -632,6 +633,10 @@ fextl::string GetCacheDirectory() {
|
||||
const char* HomeDir = GetHomeDirectory();
|
||||
const char* CacheXDG = getenv("XDG_CACHE_HOME");
|
||||
return (CacheXDG ? fextl::string {CacheXDG} : (fextl::string {HomeDir} + "/.cache")) + "/fex-emu/";
|
||||
#else
|
||||
const char* PrefixAppData = getenv("LOCALAPPDATA");
|
||||
return PrefixAppData ? (fextl::string {PrefixAppData} + "\\fex-emu\\") : fextl::string {".\\"};
|
||||
#endif
|
||||
}
|
||||
|
||||
fextl::string GetConfigFileLocation(bool Global, const PortableInformation& PortableInfo) {
|
||||
|
||||
Reference in new issue
Block a user