From f6688659f2ef85f5ceaacea6271580c9f4d91ed1 Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Sun, 26 May 2024 00:40:33 -0400 Subject: [PATCH] game: fix the path the`--portable` flag determines (#3537) `--portable` was using the path to the executable's file, instead of the directory that contains the executable --- game/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/main.cpp b/game/main.cpp index c7c147f6f..32e982783 100644 --- a/game/main.cpp +++ b/game/main.cpp @@ -142,7 +142,7 @@ int main(int argc, char** argv) { // or because it's portable mode) if (enable_portable) { lg::info("Portable mod enabled"); - user_config_dir_override = file_util::get_current_executable_path(); + user_config_dir_override = fs::path(file_util::get_current_executable_path()).parent_path(); } if (!user_config_dir_override.empty()) { lg::info("Overriding config directory with: {}", user_config_dir_override.string());