mirror of
https://github.com/alex47exe/gse_fork.git
synced 2026-02-04 05:41:18 +01:00
Add "GseSavePath" env var for overriding emu save path
This commit is contained in:
@@ -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] = {};
|
||||
|
||||
Reference in New Issue
Block a user