You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
799 B
28 lines
799 B
var ID, input, port;
|
|
ID = ds_map_find_value(async_load, "id")
|
|
if (ID == msg)
|
|
{
|
|
if ds_map_find_value(async_load, "status")
|
|
{
|
|
input = ds_map_find_value(async_load, "value")
|
|
if is_real(input)
|
|
{
|
|
ini_open((working_directory + "\settings.ini"))
|
|
port = ini_read_real("Settings", "port", 64198)
|
|
ini_close()
|
|
if (input != port)
|
|
{
|
|
if instance_exists(oServer)
|
|
{
|
|
with (oServer)
|
|
instance_destroy()
|
|
ini_open((working_directory + "\settings.ini"))
|
|
ini_write_real("Settings", "port", input)
|
|
ini_close()
|
|
alarm[0] = 300
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|