Add option to change the push target

A drag & drop always pushed the file to /sdcard/.

Add an option to customize the target directory.

Fixes <https://github.com/Genymobile/scrcpy/issues/659>
This commit is contained in:
Romain Vimont
2019-07-31 01:48:32 +02:00
parent ca970e8aa6
commit a90ccbdf3b
7 changed files with 39 additions and 10 deletions

View File

@@ -334,7 +334,8 @@ scrcpy(const struct scrcpy_options *options) {
video_buffer_initialized = true;
if (options->control) {
if (!file_handler_init(&file_handler, server.serial)) {
if (!file_handler_init(&file_handler, server.serial,
options->push_target)) {
goto end;
}
file_handler_initialized = true;