mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 13:14:01 +08:00
Fix linux CI build.
This commit is contained in:
parent
f852e5c272
commit
eda9abd2aa
19
dll/dll.cpp
19
dll/dll.cpp
@ -44,15 +44,11 @@ static char old_inventory[128] = "STEAMINVENTORY_INTERFACE_V001";
|
||||
static char old_video[128] = "STEAMVIDEO_INTERFACE_V001";
|
||||
static char old_masterserver_updater[128] = "SteamMasterServerUpdater001";
|
||||
|
||||
static void load_old_interface_versions()
|
||||
static bool try_load_steam_interfaces(std::string interfaces_path)
|
||||
{
|
||||
static bool loaded = false;
|
||||
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));
|
||||
return false;
|
||||
}
|
||||
|
||||
PRINT_DEBUG("load from: %s\n", interfaces_path.c_str());
|
||||
@ -88,6 +84,17 @@ static void load_old_interface_versions()
|
||||
#undef REPLACE_WITH_FILE
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static void load_old_interface_versions()
|
||||
{
|
||||
static bool loaded = false;
|
||||
if (loaded) return;
|
||||
|
||||
if (!try_load_steam_interfaces(Local_Storage::get_game_settings_path() + "steam_interfaces.txt"))
|
||||
try_load_steam_interfaces(Local_Storage::get_program_path() + "steam_interfaces.txt");
|
||||
|
||||
PRINT_DEBUG("client: %s\n", old_client);
|
||||
PRINT_DEBUG("gameserver: %s\n", old_gameserver);
|
||||
PRINT_DEBUG("gameserver stats: %s\n", old_gameserver_stats);
|
||||
|
Loading…
Reference in New Issue
Block a user