mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 10:30:47 +00:00
Add unpair command
This commit is contained in:
@@ -121,6 +121,7 @@ static void help() {
|
||||
printf("\n Actions\n\n");
|
||||
printf("\tmap\t\t\tCreate mapping file for gamepad\n");
|
||||
printf("\tpair\t\t\tPair device with computer\n");
|
||||
printf("\tunpair\t\t\tUnpair device with computer\n");
|
||||
printf("\tstream\t\t\tStream computer to device\n");
|
||||
printf("\tlist\t\t\tList available games and applications\n");
|
||||
printf("\tquit\t\t\tQuit the application or game being streamed\n");
|
||||
@@ -264,6 +265,12 @@ int main(int argc, char* argv[]) {
|
||||
} else {
|
||||
printf("Succesfully paired\n");
|
||||
}
|
||||
} else if (strcmp("unpair", config.action) == 0) {
|
||||
if (gs_unpair(&server) != GS_OK) {
|
||||
fprintf(stderr, "Failed to unpair to server: %s\n", gs_error);
|
||||
} else {
|
||||
printf("Succesfully unpaired\n");
|
||||
}
|
||||
} else if (strcmp("quit", config.action) == 0) {
|
||||
pair_check(&server);
|
||||
gs_quit_app(&server);
|
||||
|
||||
Reference in New Issue
Block a user