|
|
|
@ -55,6 +55,7 @@
|
|
|
|
#define OPT_NO_DOWNSIZE_ON_ERROR 1035
|
|
|
|
#define OPT_NO_DOWNSIZE_ON_ERROR 1035
|
|
|
|
#define OPT_OTG 1036
|
|
|
|
#define OPT_OTG 1036
|
|
|
|
#define OPT_NO_CLEANUP 1037
|
|
|
|
#define OPT_NO_CLEANUP 1037
|
|
|
|
|
|
|
|
#define OPT_PRINT_FPS 1038
|
|
|
|
|
|
|
|
|
|
|
|
struct sc_option {
|
|
|
|
struct sc_option {
|
|
|
|
char shortopt;
|
|
|
|
char shortopt;
|
|
|
|
@ -336,6 +337,12 @@ static const struct sc_option options[] = {
|
|
|
|
"special character, but breaks the expected behavior of alpha "
|
|
|
|
"special character, but breaks the expected behavior of alpha "
|
|
|
|
"keys in games (typically WASD).",
|
|
|
|
"keys in games (typically WASD).",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
.longopt_id = OPT_PRINT_FPS,
|
|
|
|
|
|
|
|
.longopt = "print-fps",
|
|
|
|
|
|
|
|
.text = "Start FPS counter, to print framerate logs to the console. "
|
|
|
|
|
|
|
|
"It can be started or stopped at any time with MOD+i.",
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
.longopt_id = OPT_PUSH_TARGET,
|
|
|
|
.longopt_id = OPT_PUSH_TARGET,
|
|
|
|
.longopt = "push-target",
|
|
|
|
.longopt = "push-target",
|
|
|
|
@ -1547,6 +1554,9 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
|
|
|
|
case OPT_NO_CLEANUP:
|
|
|
|
case OPT_NO_CLEANUP:
|
|
|
|
opts->cleanup = false;
|
|
|
|
opts->cleanup = false;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case OPT_PRINT_FPS:
|
|
|
|
|
|
|
|
opts->start_fps_counter = true;
|
|
|
|
|
|
|
|
break;
|
|
|
|
case OPT_OTG:
|
|
|
|
case OPT_OTG:
|
|
|
|
#ifdef HAVE_USB
|
|
|
|
#ifdef HAVE_USB
|
|
|
|
opts->otg = true;
|
|
|
|
opts->otg = true;
|
|
|
|
|