mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-13 00:34:11 +00:00
Extra bloaty junk to modernise stuff a bit.
https://fte.triptohell.info/moodles/qss/
d098087606
* sys_sdl_win.c: Copied from sys_sdl.c. Windows-only. Remove unix code. (Sys_Init): New procedure. Call AllocConsole() and get input and output handles for dedicated servers. (Sys_ConsoleInput): Add a windows version. (Sys_Error): Adjust for the allocated console and use windows api. Adjust message output. Remove the console timeout, doesn't work somehow. Just display the console for 3 seconds and then exit. Rely on SDL that it redirects/logs the stdout/stderr to files. * sys_sdl_unix.c: Rename from sys_sdl.c. Unix-only. Remove windows code. (Sys_Init): New procedure. (Sys_Error): Remove Windows-oriented dedicated server specific code. Adjust message output. * sys_sdl.c: Delete. * sys.h (Sys_Init): Add prototype. * main_sdl.c (main): Call Sys_Init(). * pl_linux.c (PL_ErrorDialog): Remove terminal printing which Sys_Error already does. * pl_osx.m (PL_ErrorDialog): Update from uhexen2. * pl_win.c: Make icon handle static. whitespace and formatting tidy-up. * Makefile, Makefile.darwin, Makefile.w32, Makefile.w64: Adjust for the sys_sdl.c name change to sys_sdl_unix.c and sys_sdl_win.c. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@223 af15c1b1-3010-417e-b628-4374ebc0bcbd |
||
---|---|---|
Linux | ||
MacOSX | ||
Misc | ||
Quake | ||
Windows | ||
gnu.txt |