1
0
Fork 0
mirror of https://github.com/Detanup01/gbe_fork.git synced 2025-03-28 14:56:24 +01:00

remove creation of new global ini if listen port is not there

This commit is contained in:
Detanup01 2025-02-04 17:44:01 +01:00 committed by GitHub
parent 0e972d8c96
commit c2d4807d94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -622,12 +622,6 @@ static uint16 parse_listen_port(class Local_Storage *local_storage)
uint16 port = static_cast<uint16>(ini.GetLongValue("main::connectivity", "listen_port"));
if (port == 0) {
port = DEFAULT_PORT;
save_global_ini_value(
local_storage,
config_ini_main,
"main::connectivity", "listen_port", IniValue((long)port),
"change the UDP/TCP port the emulator listens on"
);
}
return port;
}