mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-14 10:50:13 +01:00
Added file to disable overlay
Disable the overlay by creating a file disable_overlay.txt next to steam_api.dll
This commit is contained in:
parent
547cbdbb4e
commit
c8288d6bf3
3 changed files with 9 additions and 3 deletions
|
@ -212,6 +212,7 @@ STEAMAPI_API bool S_CALLTYPE SteamAPI_Init()
|
||||||
Steam_Client* client = get_steam_client();
|
Steam_Client* client = get_steam_client();
|
||||||
client->userLogIn();
|
client->userLogIn();
|
||||||
#ifndef NO_OVERLAY
|
#ifndef NO_OVERLAY
|
||||||
|
if( client->enable_overlay )
|
||||||
client->steam_overlay->SetupOverlay();
|
client->steam_overlay->SetupOverlay();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -41,11 +41,15 @@ static void background_thread(Steam_Client *client)
|
||||||
|
|
||||||
Steam_Client::Steam_Client()
|
Steam_Client::Steam_Client()
|
||||||
{
|
{
|
||||||
|
|
||||||
uint32 appid = create_localstorage_settings(&settings_client, &settings_server, &local_storage);
|
uint32 appid = create_localstorage_settings(&settings_client, &settings_server, &local_storage);
|
||||||
std::string items_db_file_path = (Local_Storage::get_game_settings_path() + "items.json");
|
std::string items_db_file_path = (Local_Storage::get_game_settings_path() + "items.json");
|
||||||
|
|
||||||
network = new Networking(settings_server->get_local_steam_id(), appid, settings_server->get_port(), &(settings_server->custom_broadcasts));
|
{
|
||||||
|
std::ifstream chk_ovlay(Local_Storage::get_program_path() + PATH_SEPARATOR + "disable_overlay.txt", std::ios::in);
|
||||||
|
if (chk_ovlay)
|
||||||
|
enable_overlay = false;
|
||||||
|
}
|
||||||
|
network = new Networking(settings_server->get_local_steam_id(), appid, settings_server->get_port(), &(settings_server->custom_broadcasts), settings_server->disable_networking);
|
||||||
|
|
||||||
callback_results_client = new SteamCallResults();
|
callback_results_client = new SteamCallResults();
|
||||||
callback_results_server = new SteamCallResults();
|
callback_results_server = new SteamCallResults();
|
||||||
|
|
|
@ -124,6 +124,7 @@ public:
|
||||||
|
|
||||||
Steam_Overlay* steam_overlay;
|
Steam_Overlay* steam_overlay;
|
||||||
|
|
||||||
|
bool enable_overlay = true;
|
||||||
bool user_logged_in = false;
|
bool user_logged_in = false;
|
||||||
bool server_init = false;
|
bool server_init = false;
|
||||||
std::thread background_keepalive;
|
std::thread background_keepalive;
|
||||||
|
|
Loading…
Reference in a new issue