From f852e5c272b0e7b8ce846ce569209104cce614b8 Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Wed, 26 Jan 2022 01:52:21 -0500 Subject: [PATCH] steam_interfaces.txt can now be put in the steam_settings folder. --- dll/dll.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dll/dll.cpp b/dll/dll.cpp index 3cc5b49..e3d26a4 100644 --- a/dll/dll.cpp +++ b/dll/dll.cpp @@ -50,6 +50,11 @@ static void load_old_interface_versions() if (loaded) return; std::string interfaces_path = Local_Storage::get_program_path() + "steam_interfaces.txt"; std::ifstream input( utf8_decode(interfaces_path) ); + if (!input.is_open()) { + interfaces_path = Local_Storage::get_game_settings_path() + "steam_interfaces.txt"; + input = std::ifstream(utf8_decode(interfaces_path)); + } + PRINT_DEBUG("load from: %s\n", interfaces_path.c_str()); for( std::string line; getline( input, line ); )