mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-17 22:32:43 +00:00
Correct actions
This commit is contained in:
+5
-1
@@ -164,7 +164,7 @@ int main(int argc, char* argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp("help", action) == 0)
|
if (action == NULL || strcmp("help", action) == 0)
|
||||||
help();
|
help();
|
||||||
|
|
||||||
if (address == NULL) {
|
if (address == NULL) {
|
||||||
@@ -178,4 +178,8 @@ int main(int argc, char* argv[]) {
|
|||||||
applist(address);
|
applist(address);
|
||||||
else if (strcmp("stream", action) == 0)
|
else if (strcmp("stream", action) == 0)
|
||||||
stream(&config, address, app);
|
stream(&config, address, app);
|
||||||
|
else if (strcmp("pair", action) == 0)
|
||||||
|
client_pair(address);
|
||||||
|
else
|
||||||
|
fprintf(stderr, "%s is not a valid actions\n", action);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user