|
|
|
@ -260,6 +260,9 @@ uint32 create_localstorage_settings(Settings **settings_client_out, Settings **s
|
|
|
|
|
bool steam_offline_mode = false;
|
|
|
|
|
bool disable_networking = false;
|
|
|
|
|
bool disable_overlay = false;
|
|
|
|
|
bool disable_lobby_creation = false;
|
|
|
|
|
int build_id = 10;
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
std::string steam_settings_path = Local_Storage::get_game_settings_path();
|
|
|
|
|
|
|
|
|
@ -272,6 +275,8 @@ uint32 create_localstorage_settings(Settings **settings_client_out, Settings **s
|
|
|
|
|
disable_networking = true;
|
|
|
|
|
} else if (p == "disable_overlay.txt") {
|
|
|
|
|
disable_overlay = true;
|
|
|
|
|
} else if (p == "disable_lobby_creation.txt") {
|
|
|
|
|
disable_lobby_creation = true;
|
|
|
|
|
} else if (p == "force_language.txt") {
|
|
|
|
|
int len = Local_Storage::get_file_data(steam_settings_path + "force_language.txt", language, sizeof(language) - 1);
|
|
|
|
|
if (len > 0) language[len] = 0;
|
|
|
|
@ -290,6 +295,10 @@ uint32 create_localstorage_settings(Settings **settings_client_out, Settings **s
|
|
|
|
|
char array_port[10] = {};
|
|
|
|
|
int len = Local_Storage::get_file_data(steam_settings_path + "force_listen_port.txt", array_port, sizeof(array_port) - 1);
|
|
|
|
|
if (len > 0) port = std::stoi(array_port);
|
|
|
|
|
} else if (p == "build_id.txt") {
|
|
|
|
|
char array_id[10] = {};
|
|
|
|
|
int len = Local_Storage::get_file_data(steam_settings_path + "build_id.txt", array_id, sizeof(array_id) - 1);
|
|
|
|
|
if (len > 0) build_id = std::stoi(array_id);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -304,6 +313,10 @@ uint32 create_localstorage_settings(Settings **settings_client_out, Settings **s
|
|
|
|
|
settings_server->disable_networking = disable_networking;
|
|
|
|
|
settings_client->disable_overlay = disable_overlay;
|
|
|
|
|
settings_server->disable_overlay = disable_overlay;
|
|
|
|
|
settings_client->disable_lobby_creation = disable_lobby_creation;
|
|
|
|
|
settings_server->disable_lobby_creation = disable_lobby_creation;
|
|
|
|
|
settings_client->build_id = build_id;
|
|
|
|
|
settings_server->build_id = build_id;
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
std::string dlc_config_path = Local_Storage::get_game_settings_path() + "DLC.txt";
|
|
|
|
@ -503,10 +516,12 @@ uint32 create_localstorage_settings(Settings **settings_client_out, Settings **s
|
|
|
|
|
line.pop_back();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DepotId_t depot_id = stoul(line);
|
|
|
|
|
settings_client->depots.push_back(depot_id);
|
|
|
|
|
settings_server->depots.push_back(depot_id);
|
|
|
|
|
PRINT_DEBUG("Added depot %u\n", depot_id);
|
|
|
|
|
try {
|
|
|
|
|
DepotId_t depot_id = std::stoul(line);
|
|
|
|
|
settings_client->depots.push_back(depot_id);
|
|
|
|
|
settings_server->depots.push_back(depot_id);
|
|
|
|
|
PRINT_DEBUG("Added depot %u\n", depot_id);
|
|
|
|
|
} catch (...) {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -525,10 +540,12 @@ uint32 create_localstorage_settings(Settings **settings_client_out, Settings **s
|
|
|
|
|
line.pop_back();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
uint64 source_id = stoull(line);
|
|
|
|
|
settings_client->subscribed_groups.insert(source_id);
|
|
|
|
|
settings_server->subscribed_groups.insert(source_id);
|
|
|
|
|
PRINT_DEBUG("Added source %llu\n", source_id);
|
|
|
|
|
try {
|
|
|
|
|
uint64 source_id = std::stoull(line);
|
|
|
|
|
settings_client->subscribed_groups.insert(source_id);
|
|
|
|
|
settings_server->subscribed_groups.insert(source_id);
|
|
|
|
|
PRINT_DEBUG("Added source %llu\n", source_id);
|
|
|
|
|
} catch (...) {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|