From a059fd2179976b816c26999e5bf3ecd9651863f7 Mon Sep 17 00:00:00 2001 From: wunner Date: Thu, 30 Oct 2025 18:01:25 -0600 Subject: [PATCH] Add "GseSavePath" env var for overriding emu save path --- dll/local_storage.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dll/local_storage.cpp b/dll/local_storage.cpp index 803f7d66..fbe2c7e8 100644 --- a/dll/local_storage.cpp +++ b/dll/local_storage.cpp @@ -477,6 +477,15 @@ std::string Local_Storage::get_game_settings_path() std::string Local_Storage::get_user_appdata_path() { + std::string env_save_path = get_env_variable("GseSavePath"); + if (env_save_path.length()) { + if (env_save_path.back() != PATH_SEPARATOR[0]) { + env_save_path = env_save_path.append(PATH_SEPARATOR); + } + + return env_save_path; + } + std::string user_appdata_path("SAVE"); #if defined(STEAM_WIN32) WCHAR szPath[MAX_PATH] = {};