mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-10 18:06:32 +00:00
Update sample configuration file
This commit is contained in:
@@ -239,8 +239,11 @@ bool config_file_parse(char* filename, PCONFIGURATION config) {
|
||||
config->localaudio = strcmp("true", value) == 0;
|
||||
} else {
|
||||
for (int i=0;long_options[i].name != NULL;i++) {
|
||||
if (long_options[i].has_arg == required_argument && strcmp(long_options[i].name, key) == 0) {
|
||||
parse_argument(long_options[i].val, value, config);
|
||||
if (strcmp(long_options[i].name, key) == 0) {
|
||||
if (long_options[i].has_arg == required_argument)
|
||||
parse_argument(long_options[i].val, value, config);
|
||||
else if (strcmp("true", value) == 0)
|
||||
parse_argument(long_options[i].val, NULL, config);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user