mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Add --list-displays
Add an option to list the device displays properly.
This commit is contained in:
parent
2596ca02f0
commit
b65301f672
14 changed files with 69 additions and 28 deletions
|
|
@ -353,6 +353,7 @@ scrcpy(struct scrcpy_options *options) {
|
|||
.cleanup = options->cleanup,
|
||||
.power_on = options->power_on,
|
||||
.list_encoders = options->list_encoders,
|
||||
.list_displays = options->list_displays,
|
||||
};
|
||||
|
||||
static const struct sc_server_callbacks cbs = {
|
||||
|
|
@ -370,7 +371,7 @@ scrcpy(struct scrcpy_options *options) {
|
|||
|
||||
server_started = true;
|
||||
|
||||
if (options->list_encoders) {
|
||||
if (options->list_encoders || options->list_displays) {
|
||||
bool ok = await_for_server(NULL);
|
||||
ret = ok ? SCRCPY_EXIT_SUCCESS : SCRCPY_EXIT_FAILURE;
|
||||
goto end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue