mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-27 22:40:17 +00:00
Load host specific settings from configuration file
This commit is contained in:
1 parent
7a200fea64
commit
d3c3ba92c7
1 file changed
+4
@@ -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;
|
||||
if (gs_init(server, config.address, config.key_dir) != GS_OK) {
|
||||
fprintf(stderr, "Can't connect to server %s\n", config.address);
|
||||
|
||||
Reference in new issue
Block a user