dhewg
c994974ffc
Port Sys_Milliseconds() to SDL
...
Sync with SDL and use unsigned int as return type.
Code outside of sys/ still uses signed ints to store the result.
2011-12-22 10:38:38 +01:00
dhewg
317e63887c
Port Sys_Sleep() to SDL
2011-12-22 10:38:38 +01:00
dhewg
e7482b4957
Port all thread related functions to SDL
...
Setting thread priorities has been dropped (it is not portable).
The background download thread now exits gracefully.
g_threads is not public anymore.
2011-12-22 10:38:37 +01:00
dhewg
7865e432a7
Port the async thread to a SDL timer
...
SDL implements timers via threads and it lets us easily aim at
a 60Hz frequency.
2011-12-21 17:50:39 +01:00
dhewg
1a25b165b0
Port critical sections and events to SDL
...
Use SDL mutexes and conditions.
One new critical section CRITICAL_SECTION_SYS for events.
2011-12-21 17:50:35 +01:00
dhewg
005677494f
Initial SDL setup
...
Use SDL_main on all platforms.
Fix main() for non-const argv so it matches with the SDL
prototype.
Adapt win32 WinMain() to main() and get rid of the win32 special
case in Common::Init().
2011-12-21 17:40:05 +01:00
dhewg
736ec20d4d
Untangle the epic precompiled.h mess
...
Don't include the lazy precompiled.h everywhere, only what's
required for the compilation unit.
platform.h needs to be included instead to provide all essential
defines and types.
All includes use the relative path to the neo or the game
specific root.
Move all idlib related includes from idlib/Lib.h to precompiled.h.
precompiled.h still exists for the MFC stuff in tools/.
Add some missing header guards.
2011-12-19 23:21:47 +01:00
dhewg
b62b033b88
Get rid of all idAudioHardware implementations
2011-12-14 18:37:03 +01:00
dhewg
9df3383b61
Remove Sys_LoadOpenAL() and Sys_FreeOpenAL()
...
This is not required anymore, all binaries on all platforms
either link against OpenAL or use the stub.
2011-12-14 18:23:49 +01:00
dhewg
dfdb6b6d4a
Remove the unused win32 exception handler
...
Especially don't send crash reports from this tree to id ;)
2011-12-14 18:20:31 +01:00
dhewg
b2ccf9240c
Fix Wwrite-strings warnings in sys/win32
...
deprecated conversion from string constant to ‘char*’
2011-12-14 18:20:31 +01:00
dhewg
3e25cc751a
Always link the win32 binary against OpenAL
...
Just as with OSX and Linux.
2011-12-14 18:20:31 +01:00
dhewg
b6bcd0a9cb
Fix compilation for MinGW
...
Just a few minor hiccups.
2011-12-14 18:20:30 +01:00
dhewg
661e8f453b
Stub out win32 CPU functions for MinGW
...
Most of these use MSVC style asm.
Binaries compiled with MinGW will not use any SIMD code for now.
2011-12-14 18:20:30 +01:00
dhewg
ed349d71cc
Fix Sys_QueMouseEvents for MinGW
...
DIMOFS_[X|Y|Z] can't be used in a switch statement.
2011-12-14 18:20:30 +01:00
dhewg
b8dc464dc7
Replace one unnecessary afxwin.h
...
No MFC required in win_taskkeyhook.cpp.
2011-12-14 18:20:30 +01:00
dhewg
f54752c209
Case corrections for includes on case sensitive fs'
2011-12-14 18:20:29 +01:00
dhewg
36c5b05f1f
Remove the unused and ugly HackChkStk()
2011-12-14 02:40:55 +01:00
dhewg
41a1122a82
Remove the unused and useless CallStack code
...
This was never enabled and only implemented for Windows.
2011-12-14 02:39:42 +01:00
dhewg
18762483e6
Change return type of [Sys_]GetProcessorId to int
...
Fixes compile error: invalid conversion from 'int' to 'cpuid_t'
2011-12-13 18:57:30 +01:00
dhewg
db65f7a61d
Use system OpenAL
2011-12-11 17:07:13 +01:00
dhewg
b54bc73532
Move Windows only OpenAL files to sys/win32/
2011-12-11 16:00:31 +01:00
dhewg
bdb21d20c8
Fix wrong usage of memset()
2011-12-10 15:36:17 +01:00
dhewg
f9dd2f93eb
Fix platform dependent thread function definitions
...
Thread return types are different between platforms, and its
probably not a good idea to return something of a different size,
cast the callback and expect it to not crash.
2011-12-10 15:36:13 +01:00
dhewg
0c84e4bff3
Fix shared library loading for x86_64
...
Library handles are "void *" on posix.
2011-12-10 15:36:10 +01:00
dhewg
7f4bcf94ca
Fix -Wunused-function warnings
...
defined but not used
2011-12-10 15:36:02 +01:00
dhewg
79ad905e05
Fix all whitespace errors
...
Excluding 3rd party files.
2011-12-10 15:35:54 +01:00
dhewg
ff493f6847
Fix quoting in GPL headers
2011-12-10 15:34:48 +01:00
Timothee 'TTimo' Besset
fb1609f554
hello world
2011-11-22 15:28:15 -06:00