mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-17 14:22:00 +00:00
Load host specific settings from configuration file
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user