game: windowed mode related fixes (#1778)

* game: restore windowed mode settings properly

* game: use the game version for saving settings/saves

* game: prevent windowed mode from being auto-centered on initial init

* game: save and restore window coordinates

* lint: formatting
This commit is contained in:
Tyler Wilding
2022-08-21 18:13:27 -04:00
committed by GitHub
parent 7fd206be9c
commit dec7da2110
11 changed files with 107 additions and 42 deletions
+1 -2
View File
@@ -521,8 +521,7 @@ void InitMachine_PCPort() {
auto user_dir_path = file_util::get_user_config_dir();
intern_from_c("*pc-user-dir-base-path*")->value() =
make_string_from_c(user_dir_path.string().c_str());
// TODO - we will eventually need a better way to know what game we are playing
auto settings_path = file_util::get_user_settings_dir();
auto settings_path = file_util::get_user_settings_dir(g_game_version);
intern_from_c("*pc-settings-folder*")->value() =
make_string_from_c(settings_path.string().c_str());
intern_from_c("*pc-settings-built-sha*")->value() = make_string_from_c(GIT_VERSION);