mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-07-28 11:49:10 +00:00
Add option to not power on on start
By default, on start, the device is powered on. To prevent this behavior, add a new option --no-power-on. Fixes #3148 <https://github.com/Genymobile/scrcpy/issues/3148> PR #3210 <https://github.com/Genymobile/scrcpy/pull/3210>
This commit is contained in:
parent
326897a0d4
commit
0fca2ad830
13 changed files with 51 additions and 3 deletions
|
@ -248,6 +248,10 @@ execute_server(struct sc_server *server,
|
|||
// By default, cleanup is true
|
||||
ADD_PARAM("cleanup=false");
|
||||
}
|
||||
if (!params->power_on) {
|
||||
// By default, power_on is true
|
||||
ADD_PARAM("power_on=false");
|
||||
}
|
||||
|
||||
#undef ADD_PARAM
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue