mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-02-28 23:01:14 +00:00
Refactored the pseudo-custom SDL_main code a bit: SDL_win32_main.c is now only used for SDL1.2, SDL2 and SDL3 have a WinMain() function in win_main.cpp that works pretty much like the SDL2 SDL_main or SDL3 SDL_RunApp() code - except that the argv[] strings passed to the Doom3 main() function (now renamed to SDL_main()) are encoded in ANSI instead of UTF-8, so paths passed as commandline arguments, like dhewm3 +set fs_basepath C:\SüperGämes\Doom3 work with the Win32 ANSI function used by Doom3 to handle paths and files. For this I also moved the stdout/stderr redirection code from SDL_win32_main.c to win_main.cpp and cleaned it up a bit |
||
---|---|---|
.. | ||
rc | ||
sdk | ||
SDL_win32_main.c | ||
win_input.cpp | ||
win_local.h | ||
win_main.cpp | ||
win_net.cpp | ||
win_shared.cpp | ||
win_syscon.cpp |