mirror of
https://github.com/mpv-player/mpv
synced 2024-11-07 01:47:00 +01:00
527911d2a2
Previously, mpv.exe used the --terminal option to decide whether to attach to the parent process's console, which made it impossible to tell whether mpv would attach to the console before the config files were parsed. Instead, make mpv always attach to the console when launched from the console wrapper (mpv.com) and never attach otherwise. This will be useful for the next commit, which will use the presence of the console to decide whether to use the pseudo-gui profile. This change should also be an improvement in behavior. The old code would attach to the parent process's console, regardless of whether it was mpv.com or some other program like cmd.exe. This could be confusing, since mpv.exe is marked as a Windows GUI program and shouldn't write text to its parent process's console when launched directly. (See #768.) Visual Studio does something similar with its devenv.com wrapper. devenv.exe only attaches to the console when launched from devenv.com. |
||
---|---|---|
.. | ||
ar | ||
win32 | ||
atomics.h | ||
compiler.h | ||
endian.h | ||
glob-win.c | ||
io.c | ||
io.h | ||
macosx_application_objc.h | ||
macosx_application.h | ||
macosx_application.m | ||
macosx_compat.h | ||
macosx_events_objc.h | ||
macosx_events.h | ||
macosx_events.m | ||
macosx_versions.h | ||
mpv.exe.manifest | ||
mpv.rc | ||
path-macosx.m | ||
path-win.c | ||
path.h | ||
semaphore_osx.c | ||
semaphore.h | ||
subprocess-posix.c | ||
subprocess-win.c | ||
subprocess.h | ||
terminal-unix.c | ||
terminal-win.c | ||
terminal.h | ||
threads.c | ||
threads.h | ||
timer-darwin.c | ||
timer-linux.c | ||
timer-win2.c | ||
timer.c | ||
timer.h | ||
w32_keyboard.c | ||
w32_keyboard.h | ||
win32-console-wrapper.c |