mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-21 00:40:47 +00:00
6181f24c44
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 |
||
---|---|---|
.. | ||
aros | ||
cmake | ||
linux | ||
osx | ||
posix | ||
stub | ||
win32 | ||
cpu.cpp | ||
doom_icon.h | ||
events.cpp | ||
glimp.cpp | ||
imgui_savestyle.cpp | ||
platform.h | ||
proggyvector_font.h | ||
sys_imgui.cpp | ||
sys_imgui.h | ||
sys_local.cpp | ||
sys_local.h | ||
sys_public.h | ||
sys_sdl.h | ||
threads.cpp |