mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-08-18 01:15:59 +00:00
Complain about missing default mapping file
This commit is contained in:
parent
036fa5949d
commit
af383eb371
11
src/config.c
11
src/config.c
@ -317,8 +317,13 @@ void config_parse(int argc, char* argv[], PCONFIGURATION config) {
|
||||
config->stream.bitrate = 5000;
|
||||
}
|
||||
|
||||
if (inputAdded && !mapped) {
|
||||
fprintf(stderr, "Mapping option should be followed by the input to be mapped.\n");
|
||||
exit(-1);
|
||||
if (inputAdded) {
|
||||
if (!mapped) {
|
||||
fprintf(stderr, "Mapping option should be followed by the input to be mapped.\n");
|
||||
exit(-1);
|
||||
} else if (config->mapping == NULL) {
|
||||
fprintf(stderr, "Please specify mapping file as default mapping could not be found.\n");
|
||||
exit(-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user