From 7e1824290a5d2ecde849d03a5a0d55ec9ff6f81e Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Tue, 6 Sep 2022 13:29:39 -0400 Subject: [PATCH] disable_lan_only.txt can now be put inside the steam_settings folder. --- Readme_experimental.txt | 2 +- dll/base.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Readme_experimental.txt b/Readme_experimental.txt index 926b337..97316cf 100644 --- a/Readme_experimental.txt +++ b/Readme_experimental.txt @@ -6,7 +6,7 @@ Then use my emu like you normally would. (Don't forget to put a steam_appid.txt) For the LAN only connections feature: -If for some reason you want to disable this feature create a file named: disable_lan_only.txt beside the steam_api dll. +If for some reason you want to disable this feature create a file named: disable_lan_only.txt beside the steam_api dll or inside the steam_settings folder beside the steam api dll. I noticed a lot of games seem to connect to analytics services and other crap that I hate. diff --git a/dll/base.cpp b/dll/base.cpp index fd2efc9..507e034 100644 --- a/dll/base.cpp +++ b/dll/base.cpp @@ -824,7 +824,7 @@ static bool network_functions_attached = false; BOOL WINAPI DllMain( HINSTANCE, DWORD dwReason, LPVOID ) { switch ( dwReason ) { case DLL_PROCESS_ATTACH: - if (!file_exists(get_full_program_path() + "disable_lan_only.txt")) { + if (!file_exists(get_full_program_path() + "disable_lan_only.txt") && !file_exists(get_full_program_path() + "\\steam_settings\\disable_lan_only.txt")) { PRINT_DEBUG("Hooking lan only functions\n"); DetourTransactionBegin(); DetourUpdateThread( GetCurrentThread() );