Yamagi Burmeister
6b7bc06074
opengl32.dll is the default gldriver on Windows
2012-06-04 13:13:14 +02:00
Yamagi Burmeister
27de5f3a6f
Fall back to opengl32.dll if the gldriver couldn't be loaded
2012-06-04 13:10:12 +02:00
Yamagi Burmeister
5523cc8de2
Use correct name to query the refresher
2012-06-04 12:52:54 +02:00
Yamagi Burmeister
a8b9183664
Build all targets on Windows
2012-06-04 12:47:28 +02:00
Yamagi Burmeister
51869fbc9d
Add qgl.c for Windows
...
This file was taken from ioQuake2 and altered for inclusion in Yamagi
Quake II.
2012-06-04 12:42:55 +02:00
Yamagi Burmeister
0d46fed529
Add Windows stuff
...
This code was taken from ioQuake2 and altered for inclusion in Yamagi
Quake II
2012-06-04 12:41:29 +02:00
Yamagi Burmeister
d0146dc4d5
Hide native JPEG and TGA loading functions behind RETEXTURE
2012-06-04 12:40:58 +02:00
Yamagi Burmeister
b42f208fd0
Include windows.h in refresh/header/local.h
2012-06-04 12:26:49 +02:00
Yamagi Burmeister
0365c93138
Add glwindow.h for Windows
...
This file was taken from ioQuake2 and altered to work with Yamagi Quake
II
2012-06-04 12:08:18 +02:00
Yamagi Burmeister
6f9b75f89f
More changes to the Makefile for the refresher
2012-06-04 12:02:05 +02:00
Yamagi Burmeister
b8792c7fc0
Use correct SDL include path under Windows and hide X11 stuff
2012-06-04 11:52:07 +02:00
Yamagi Burmeister
e652f32a64
Makefile support for the refresher under Windows
2012-06-04 11:49:11 +02:00
Yamagi Burmeister
51ca0ca673
Define missing OpenGL extensions for Windows
...
While this is not the 100% correct way, it's much cleaner than just
importing th whole header files.
2012-06-04 11:46:08 +02:00
Yamagi Burmeister
2672495c3f
Build the client by default under Windows
2012-06-04 11:15:53 +02:00
Yamagi Burmeister
86f89fce22
Implement vid.c for Windows
...
This file was taken from ioQuake2 and modified to work with Yamagi Quake
II. It may not be perfect yet, but should be good enough to the client
up and running.
2012-06-04 11:09:43 +02:00
Yamagi Burmeister
5d272eeab8
strsep() is a FreeBSDism. Switch over to strtok().
2012-06-04 10:53:55 +02:00
Yamagi Burmeister
a4609fc42b
Use correct include pathes to SDL under Windows
2012-06-04 10:02:01 +02:00
Yamagi Burmeister
93f518e7b5
Initial Makefile suppport for the client under Windows
2012-06-04 09:51:17 +02:00
Yamagi Burmeister
e2def7c1cc
We are now able to build and run a dedicated server on Windows
2012-06-04 09:44:44 +02:00
Yamagi Burmeister
65a7ac596d
Port the game.so to Windows
...
The game.so hasn't any platform depended code, therefore this
rudimentary port can be done with Makefile magic. There are
some TODOs left, they'll be resolved later on.
2012-06-04 09:32:35 +02:00
Yamagi Burmeister
7d3b9a5c00
Ignore errors of AllocConsole()
...
This errors are harmless and thrown when the process is already attached
to a console. Since the dedicated server is a console application the
console is created by Windows at startup...
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
4e37958b63
Stub Sys_Init() for Unix and call it while initializing
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
32dc525124
Stub NET_Init() for Unix and call it while initializing
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
d2177bb618
Open binary files in mode "rb" instead of "r"
...
This subtile bug didn't show on unixoid platforms, but led to problems
on Windows.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
e85bf27473
We are now able to build q2ded.exe under windows
...
Of course this is completly untested. Without a game.dll the dedicated
server is useless.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
991ff17f1b
Implement Sys_GetCurrentDirectory()
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
1a3b54b27e
Move glob.c and glob.h to common
...
We need glob_match() for Windows
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
9618483d48
Add linker flags for Windows
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
280a432161
Comment Sys_AppActivate() since cl_hwnd will be ported later
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
ba8b81068d
Update TODO
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
f3bead4f6b
Add Windows network functions in network.c
...
This file was taken from ioQuake2 and refactored to match Yamagi Quake
II. It would be nice to have IPv6 support and to remove the old IPX
cruft, but that happen now.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
0b226ce838
Include ctype.h and silence some warnings
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
263156bda7
Implement system depended file handling
...
Those functions were taken from ioQuake2 and refactored to match Yamagi
Quake II.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
bd1070eff2
Remove FS_DeletePath() and Sys_Rmdir()
...
Thise functions where added with the filesystem rewrite but never used.
Removing them saves us from implementing Sys_Rmdir() for Windows.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
a6f22f0f5a
Implement Sys_Milliseconds
...
This function was taken from ioQuakeII and refactored to match Yamagi
Quake II
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
5908432bba
Add a TODO to ensure that all new headers have header guards
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
05f7e37c77
Add memory handling functions in mem.c
...
This code was taken from ioQuake2, refactored into an own file and
altered for the inclusion in Yamagi Quake II.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
e8d44459a4
Use correct types and remove unused variables
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
d9560b4020
Hide calls to CL_Shutdown() behind !DEDICATED_ONLY
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
8ca30adf46
Do not set the FPU state
...
This is a workaround for a MinGW bug and should be resolved before the
first CFT is released. A TODO item was added in a preceding commit.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
39ae083340
Remove DirectX variables
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
d80b8e7d37
Alter the Makefile again to bootstrap Windows
...
This version of the Makefile adds a horrible workaround for Windows
broken "mkdir". It'll be resolved before the first CFT is released.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
b54c7efdc0
Add mkdir.exe
...
Having mkdir.exe in the root directory is a horrible workaround to
bootstrap Yamagi Quake II on Windows without rewriting bigger parts
of the Makefile. This is a temporary solution and will be changed
before the first CFT is released
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
8bfb73ab27
Add TODO
...
A list of thinks to be done befor the first CFT is released
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
1782c5ab30
Add winquake.h
...
This header containts Windows specific stuff. It was taken from ioQuake2
and cleaned up for inclusion in Yamagi Quake II.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
f0e23f199d
Add resource.h
...
This is the "Windows resource file", required by every Windows
application
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
0eb042555b
Add conproc.c and the coresponding header
...
conproc.c implements support functions for the console windows used by
the dedicated server. It was taken from ioQuake2 and cleaned up for the
inclusion in Yamagi Quake II.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
4adc6a2ca2
Add windows/system.c
...
This files contains most support functions for windows and the main
loop. It was taken from Icculus Quake II and cleaned up. This early
version may still have bugs.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
ce3d61ef61
Remove unused Sys_CopyProtect stup
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
9b02f8f7fe
Add a TODO list
2012-06-04 09:13:29 +02:00