mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
If scrcpy is launched by double-clicking scrcpy.exe in Windows Explorer, automatically set --pause-on-exit=if-error. Without this, the terminal would close immediately, preventing the user from seeing the error. Also remove scrcpy-console.bat, which is now useless. PR #6667 <https://github.com/Genymobile/scrcpy/pull/6667>
35 lines
610 B
C
35 lines
610 B
C
#ifndef SCRCPY_CLI_H
|
|
#define SCRCPY_CLI_H
|
|
|
|
#include "common.h"
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "options.h"
|
|
|
|
enum sc_pause_on_exit {
|
|
SC_PAUSE_ON_EXIT_UNDEFINED,
|
|
SC_PAUSE_ON_EXIT_TRUE,
|
|
SC_PAUSE_ON_EXIT_FALSE,
|
|
SC_PAUSE_ON_EXIT_IF_ERROR,
|
|
};
|
|
|
|
struct scrcpy_cli_args {
|
|
struct scrcpy_options opts;
|
|
bool help;
|
|
bool version;
|
|
enum sc_pause_on_exit pause_on_exit;
|
|
};
|
|
|
|
void
|
|
scrcpy_print_usage(const char *arg0);
|
|
|
|
bool
|
|
scrcpy_parse_args(struct scrcpy_cli_args *args, int argc, char *argv[]);
|
|
|
|
#ifdef SC_TEST
|
|
bool
|
|
sc_parse_shortcut_mods(const char *s, uint8_t *shortcut_mods);
|
|
#endif
|
|
|
|
#endif
|