Skip to content

Commit

Permalink
game: fix the path the--portable flag determines (#3537)
Browse files Browse the repository at this point in the history
`--portable` was using the path to the executable's file, instead of the
directory that contains the executable
  • Loading branch information
xTVaser authored May 26, 2024
1 parent 12ce274 commit f668865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit f668865

Please sign in to comment.