steam_interfaces.txt can now be put in the steam_settings folder.
parent
0a5f136bc3
commit
f852e5c272
|
@ -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 ); )
|
||||||
|
|
Loading…
Reference in New Issue