mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-08-18 09:26:12 +00:00
Load host specific settings from configuration file
This commit is contained in:
parent
7a200fea64
commit
d3c3ba92c7
@ -178,6 +178,10 @@ int main(int argc, char* argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char host_config_file[128];
|
||||||
|
sprintf(host_config_file, "hosts/%s.conf", config.address);
|
||||||
|
config_file_parse(host_config_file, &config);
|
||||||
|
|
||||||
PSERVER_DATA server;
|
PSERVER_DATA server;
|
||||||
if (gs_init(server, config.address, config.key_dir) != GS_OK) {
|
if (gs_init(server, config.address, config.key_dir) != GS_OK) {
|
||||||
fprintf(stderr, "Can't connect to server %s\n", config.address);
|
fprintf(stderr, "Can't connect to server %s\n", config.address);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user