yuchenlin
27bed948d4
Use specific error for missing binary on Windows
...
Signed-off-by: yuchenlin <npes87184@gmail.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
7 years ago
Romain Vimont
55d33ddd5f
Do not handle system-specific values in command.c
...
The common command.c handled process errors from system-specific int
values (errno).
Rather, expose a new enum process_result to handle error cause in a
generic way.
7 years ago
yuchenlin
6d2d803003
Notify adb missing
...
There are many user who encounters missing adb.
To stop things happens again, we check it and show
sexy response to user.
Signed-off-by: yuchenlin <npes87184@gmail.com>
7 years ago
Romain Vimont
536b31829a
Separate multi-words filenames by '_'
...
Rename foobar.ext to foo_bar.ext.
<https://github.com/Genymobile/scrcpy/pull/226#discussion_r209454865 >
7 years ago
Romain Vimont
a63dd47f2d
Make CreateProcess() flags depend on "noconsole"
...
On Windows, display the output of external commands (adb) when a console
is available.
8 years ago
Romain Vimont
f5cf6c1b2c
Include source root directory
...
All headers and sources are in src/. To avoid using relative includes
from subdirectories ("../../"), include the source root directory.
8 years ago
Romain Vimont
518d6d5dcd
Prevent new window opening with CreateProcess()
...
Executing commands (like "adb push") created a new terminal window on
Windows. Avoid it.
8 years ago
Romain Vimont
3ed80a1fac
Define macros wrappers for logs
...
Use macros to wrap SDL_Log* functions with the "application" category.
8 years ago
Romain Vimont
ad41bacb48
Fix "terminate process" on Windows
...
CloseHandle() does not terminate the process. TerminateProcess() does.
8 years ago
Romain Vimont
66b7a99db6
Fix includes windows-specific source
...
The header strutil.h is two levels above sys/win/command.c, and
SDL_log.h was missing.
8 years ago
Romain Vimont
95591d2938
Move platform specific to sys/
...
Move unix/ and win/ to sys/, so that we can use android/ for android
headers without confusion.
8 years ago