mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-20 03:25:03 +00:00
prevent closing console right after process error in windows
Signed-off-by: yuchenlin <npes87184@gmail.com>
This commit is contained in:
parent
a60aef5aaf
commit
066d3dfbcb
1 changed files with 5 additions and 0 deletions
|
@ -319,5 +319,10 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
avformat_network_deinit(); // ignore failure
|
||||
|
||||
#if defined (__WINDOWS__) && ! defined (WINDOWS_NOCONSOLE)
|
||||
if (res != 0) {
|
||||
system("pause");
|
||||
}
|
||||
#endif
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue