mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 07:23:37 +08:00
renaming env var to device_name
This commit is contained in:
parent
81f76c44a8
commit
657109718e
@ -576,7 +576,7 @@ class ServerManagerApp:
|
|||||||
# Set an environment var to change the device name.
|
# Set an environment var to change the device name.
|
||||||
# Device name is used while making connection with master server,
|
# Device name is used while making connection with master server,
|
||||||
# cloud-console recognize us with this name.
|
# cloud-console recognize us with this name.
|
||||||
os.environ['BA_HOST_NAME'] = self._config.party_name
|
os.environ['BA_DEVICE_NAME'] = self._config.party_name
|
||||||
|
|
||||||
print(f'{Clr.CYN}Launching server subprocess...{Clr.RST}', flush=True)
|
print(f'{Clr.CYN}Launching server subprocess...{Clr.RST}', flush=True)
|
||||||
binary_name = ('BallisticaCoreHeadless.exe'
|
binary_name = ('BallisticaCoreHeadless.exe'
|
||||||
|
|||||||
@ -499,11 +499,11 @@ auto Platform::GetDeviceName() -> std::string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto Platform::DoGetDeviceName() -> std::string {
|
auto Platform::DoGetDeviceName() -> std::string {
|
||||||
// Check hostname in env_var
|
// Check devicename in env_var
|
||||||
char* hostname;
|
char* devicename;
|
||||||
hostname = getenv("BA_HOST_NAME");
|
devicename = getenv("BA_DEVICE_NAME");
|
||||||
if (hostname != NULL) {
|
if (devicename != NULL) {
|
||||||
return hostname;
|
return devicename;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Else just go with hostname as a decent default.
|
// Else just go with hostname as a decent default.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user