mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-18 14:50:56 +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;
|
||||
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