steam_interfaces.txt can now be put in the steam_settings folder.

merge-requests/48/head
Mr_Goldberg 2022-01-26 01:52:21 -05:00
parent 0a5f136bc3
commit f852e5c272
No known key found for this signature in database
GPG Key ID: 8597D87419DEF278
1 changed files with 5 additions and 0 deletions

View File

@ -50,6 +50,11 @@ static void load_old_interface_versions()
if (loaded) return; if (loaded) return;
std::string interfaces_path = Local_Storage::get_program_path() + "steam_interfaces.txt"; std::string interfaces_path = Local_Storage::get_program_path() + "steam_interfaces.txt";
std::ifstream input( utf8_decode(interfaces_path) ); 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()); PRINT_DEBUG("load from: %s\n", interfaces_path.c_str());
for( std::string line; getline( input, line ); ) for( std::string line; getline( input, line ); )