yquake2remaster/src
Daniel Gibson ed918cf423 CMake: Make the game build with Visual Studio (2019 16.8 or newer)
The easiest way to build this is to check out the dhewm3-libs project
(https://github.com/dhewm/dhewm3-libs/) to provide the dependencies
(SDL2, OpenAL, cURL) and set YQUAKE2LIBS accordingly, by passing
-DYQUAKE2LIBS=c:/path/to/dhewm3-libs/i686-w64-mingw32 to cmake.

I wouldn't really recommend building with MSVC - I just somehow made it
work and ignored all the warnings and I have no idea how portable the
resulting binaries are etc. For binaries you actually want to use, please
continue using MinGW-w64. Especially my workaround for VLAs (C99 variable
length arrays) is kinda fishy, particularly if those arrays are allocated
in a loop (that's inly done in ref_gl1.dll's code).

The only reason I did this is that I had to debug on Windows and, at least
for my specific bug, gdb didn't really work with binaries produced by
MingGW-w64 and MSVC's debugger works well with binaries produced by MSVC.

Currently requires VS 2019 16.8 or newer with C11 (/std:c11) because I
couldn't get YQ2_ALIGNAS_TYPE() to work with MSVC without _Alignas().
If we can get this to work, VS2015 or newer might suffice (but not older
versions, because their so called C standardlib didn't provide exotic
functions like snprintf()).

# Conflicts:
#	CMakeLists.txt
2022-03-12 16:55:55 +01:00
..
backends backends: Only enable ARM "RunFast" mode when targeting hardware FPU 2021-10-05 14:05:15 +01:00
client CMake: Make the game build with Visual Studio (2019 16.8 or newer) 2022-03-12 16:55:55 +01:00
common CMake: Make the game build with Visual Studio (2019 16.8 or newer) 2022-03-12 16:55:55 +01:00
game Reset the clip mask in ThrowHead() to MASK_SHOT. 2022-02-05 17:26:48 +01:00
server Mark game mode cvar as CVAR_SERVERINFO and CVAR_LATCH. 2021-11-13 12:22:14 +01:00
win-wrapper quake2.exe wrapper puts Q2 window in foreground 2019-05-08 03:04:12 +02:00