From 3fab2f39b159a971582afdbcbad35317caef6c47 Mon Sep 17 00:00:00 2001 From: otavepto Date: Sat, 20 Apr 2024 19:28:50 +0200 Subject: [PATCH] fixed a bug in the flag which enables the overlay + added missing settings file + some refactoring --- CHANGELOG.md | 2 +- dll/settings_parser.cpp | 4 ++-- post_build/README.release.md | 2 +- .../steam_settings.EXAMPLE/auto_accept_invite.EXAMPLE.txt | 0 .../steam_settings.EXAMPLE/configs.overlay.EXAMPLE.ini | 6 ------ 5 files changed, 4 insertions(+), 10 deletions(-) create mode 100644 post_build/steam_settings.EXAMPLE/auto_accept_invite.EXAMPLE.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b8ae85c..ef81d426 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,10 +24,10 @@ in both cases, the tool will create a new folder `steam_settings` in the current directory with all the results of the conversion * **[breaking]** changed the environment variable `SteamAppPath` to `GseAppPath`, which is used to override the program path detected by the emu * new option `add_steam_preowned_ids` in `configs.main.ini` which allows adding a lot of Steam builtin and preowned IDs to the DLC list, and the emu's list of installed apps +* added a workaround for Steam Input, set `disable_steamoverlaygameid_env_var=1` inside `configs.main.ini`, might not work though * removed the limit on the amount of characters for local saves * allow specifying absolute paths for local saves * removed the warning for using `force_xxx.txt` files from the overlay, since it's no longer relevant, also removed the code which disables the user input when this warning was displayed -* added a workaroung for Steam Input, set `disable_steamoverlaygameid_env_var=1` inside `configs.main.ini`, might not work though * increase run callbacks background thread polling time to `~200ms` * changed the overlay title to give proper credits to its author * set these env vars for a more accurate emulation: diff --git a/dll/settings_parser.cpp b/dll/settings_parser.cpp index 973256fd..ca4157b5 100644 --- a/dll/settings_parser.cpp +++ b/dll/settings_parser.cpp @@ -1155,8 +1155,8 @@ static void parse_ip_country(class Settings *settings_client, class Settings *se // overlay::general static void parse_overlay_general_config(class Settings *settings_client, class Settings *settings_server) { - settings_client->disable_overlay = !ini.GetBoolValue("overlay::general", "enable_experimental_overlay", settings_client->disable_overlay); - settings_server->disable_overlay = !ini.GetBoolValue("overlay::general", "enable_experimental_overlay", settings_server->disable_overlay); + settings_client->disable_overlay = !ini.GetBoolValue("overlay::general", "enable_experimental_overlay", !settings_client->disable_overlay); + settings_server->disable_overlay = !ini.GetBoolValue("overlay::general", "enable_experimental_overlay", !settings_server->disable_overlay); { auto val = ini.GetLongValue("overlay::general", "hook_delay_sec", -1); diff --git a/post_build/README.release.md b/post_build/README.release.md index 6e936cb0..b89e09db 100644 --- a/post_build/README.release.md +++ b/post_build/README.release.md @@ -388,7 +388,7 @@ Look for the column `API language code` --- -## Auto accept game/lobby invites: +## Bypass overlay and auto accept game/lobby invites: **Note: at the moment this feature is only enabled in the experimental builds** --- diff --git a/post_build/steam_settings.EXAMPLE/auto_accept_invite.EXAMPLE.txt b/post_build/steam_settings.EXAMPLE/auto_accept_invite.EXAMPLE.txt new file mode 100644 index 00000000..e69de29b diff --git a/post_build/steam_settings.EXAMPLE/configs.overlay.EXAMPLE.ini b/post_build/steam_settings.EXAMPLE/configs.overlay.EXAMPLE.ini index 5176caa8..34fecd5f 100644 --- a/post_build/steam_settings.EXAMPLE/configs.overlay.EXAMPLE.ini +++ b/post_build/steam_settings.EXAMPLE/configs.overlay.EXAMPLE.ini @@ -81,9 +81,3 @@ PosAchievement=top_right PosInvitation=top_right # position of chat messages PosChatMsg=top_right - -[overlay::auto_accept_invite] -accept_from_anyone=0 -76561197960287930=1 -76561197960271227=1 -76561197960276863=1