mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-14 10:50:13 +01:00
Add force_listen_port.txt
This commit is contained in:
parent
8e1be658e9
commit
8e9d3e8f3a
3 changed files with 6 additions and 1 deletions
|
@ -29,7 +29,7 @@ Note that these are global so you won't have to change them for each game. For g
|
||||||
If you want to change your steam_id on a per game basis, simply create a settings folder in the game unique directory (Full path: C:\Users\<Your windows user name>\AppData\Roaming\Goldberg SteamEmu Saves\<appid>\settings)
|
If you want to change your steam_id on a per game basis, simply create a settings folder in the game unique directory (Full path: C:\Users\<Your windows user name>\AppData\Roaming\Goldberg SteamEmu Saves\<appid>\settings)
|
||||||
In that settings folder create a user_steam_id.txt file that contains the valid steam id that you want to use for that game only.
|
In that settings folder create a user_steam_id.txt file that contains the valid steam id that you want to use for that game only.
|
||||||
|
|
||||||
You can also make the emu ignore certain global settings by using a force_account_name.txt, force_language.txt or force_steamid.txt that you put in the <path where my emu lib is>\steam_settings\ folder.
|
You can also make the emu ignore certain global settings by using a force_account_name.txt, force_language.txt, force_listen_port.txt or force_steamid.txt that you put in the <path where my emu lib is>\steam_settings\ folder.
|
||||||
See the steam_settings.EXAMPLE folder for an example.
|
See the steam_settings.EXAMPLE folder for an example.
|
||||||
|
|
||||||
If for some reason you want it to save in the game directory you can create a file named local_save.txt right beside steam_api(64).dll (libsteam_api.so on linux)
|
If for some reason you want it to save in the game directory you can create a file named local_save.txt right beside steam_api(64).dll (libsteam_api.so on linux)
|
||||||
|
|
|
@ -286,6 +286,10 @@ uint32 create_localstorage_settings(Settings **settings_client_out, Settings **s
|
||||||
} else if (p == "force_account_name.txt") {
|
} else if (p == "force_account_name.txt") {
|
||||||
int len = Local_Storage::get_file_data(steam_settings_path + "force_account_name.txt", name, sizeof(name) - 1);
|
int len = Local_Storage::get_file_data(steam_settings_path + "force_account_name.txt", name, sizeof(name) - 1);
|
||||||
if (len > 0) name[len] = 0;
|
if (len > 0) name[len] = 0;
|
||||||
|
} else if (p == "force_listen_port.txt") {
|
||||||
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
47584
|
Loading…
Reference in a new issue