dhewg
2d69979be2
Use the portable getifaddrs() on *nix
...
Cleanup the OSX specific code in Sys_InitNetworking() and use it
for all *nix platforms.
Fixes nic detection on BSD.
2012-07-03 21:11:05 +02:00
dhewg
99864667a7
Use PATH_MAX for MAX_OSPATH on all platforms
...
The hardcoded 256 doesn't cut it.
2012-07-03 21:10:45 +02:00
dhewg
f000947d4e
Fixes issues with MacOSX.
...
- Fixes compiler errors with mismatching types in DoomController.mm
- Adds PPC_INTRINSICS fix to Simd_Altivec.h
2012-06-28 14:08:39 +02:00
dhewg
b9cc8548dc
Remove leftover X11 header
2012-06-15 18:25:48 +02:00
Daniel Gibson
6a23b17509
Work around broken libs that call setlocale(LC_ALL, "");
...
Because that can fuck up parsing floats if your locale uses ',' as a radix.
LADSPA plugins that may be used by ALSA do this. A PITA to debug.
2012-05-13 00:04:17 +02:00
dhewg
0e3500b919
Accept both alt keys for alt-enter
...
Reported by Ensiform.
2012-01-19 00:22:47 +01:00
dhewg
3e066baf91
Map the right alt key
...
SDLK_RALT was missing, it is independent of SDLK_MODE.
Reported by Ensiform.
2012-01-19 00:19:51 +01:00
dhewg
898f690fc4
This is dhewm 3
...
Rename project, now at https://github.com/dhewm
2012-01-14 20:06:05 +01:00
dhewg
db4aca78d6
Get rid of CPU_EASYARGS
...
Never use the event callbacks with mismatching prototypes.
2012-01-14 15:19:38 +01:00
dhewg
b7ce0ef149
CMake: Use config.h for BUILD_OS and BUILD_CPU
...
This fixes, among others, FreeBSD 64bit builds where the build
system used a "amd64" suffix and runtime "x86_64".
2012-01-14 15:19:12 +01:00
dhewg
545d98fc08
CMake: Create config.h
...
Use config.h for configure time settings.
2012-01-14 15:09:27 +01:00
dhewg
dca4721c8f
Get rid of the scons build system
...
This only works for linux and cmake works on all platforms.
Hopefully this prevents invalid reports.
2012-01-14 15:01:19 +01:00
dhewg
1a5499e6f5
Fix compilation of the dedicated server
...
Add missing OpenAL stubs.
2012-01-14 13:26:01 +01:00
dhewg
ad48afdbd7
Fix compilation via scons
...
SConscript.core was missing jpeg_memory_src.cpp.
Reported by ameyp.
Fixes #2 .
2012-01-11 18:56:38 +01:00
dhewg
1ce658e835
Get rid of memory status functions
...
Unused.
2012-01-08 12:24:58 +01:00
dhewg
fe7b32d47e
Get rid of dead prototype
2012-01-08 12:24:58 +01:00
dhewg
6a1d6cb842
Always allow multiple instances
2012-01-08 12:24:58 +01:00
dhewg
438685e6e6
Get rid of Sys_FlushCacheMemory()
...
Stub on all platforms.
2012-01-08 12:24:58 +01:00
dhewg
9542663097
Get rid of Sys_DefaultCDPath()
...
Stub on all platforms.
2012-01-08 12:24:58 +01:00
dhewg
79fa35d0ec
Get rid of ID_MCHECK
...
mcheck() is not thread safe, use MALLOC_CHECK_ or TCMalloc
instead.
2012-01-08 12:24:57 +01:00
dhewg
5f8712902c
Return at least 64MB VRAM in case the detection fails
2012-01-08 12:24:57 +01:00
dhewg
a35d8c08b6
Fix usage of wrong define in sys/cpu.cpp
2012-01-08 12:24:57 +01:00
dhewg
47e486b62a
Add SDL_win32_main.c
...
Don't link against SDLmain.[a|lib], always compile it.
We can use pure C MinGW cross compiled libraries with MSVC, and
this is the only static library used.
2012-01-07 19:01:53 +01:00
dhewg
b3085e03b4
Fix sys/win32/* for x86_64
2012-01-07 19:00:43 +01:00
dhewg
4927299cb9
Include malloc.h for alloca for MinGW
...
Newer versions of MinGW do not seem to require this, but older
ones do.
2012-01-07 15:40:22 +01:00
dhewg
989b812a6e
Cleanup DOOMController.mm
...
Cleanup headers and use MAXPATHLEN.
2012-01-05 00:24:16 +01:00
dhewg
6fa12c3a44
Get rid of the NSObject in DOOMController.mm
...
SDLmain.m does the bulk of the work for us, so get rid of
the DOOMController NSObject, move the quakeMain() contents to
main() and let SDL do its thing.
2012-01-05 00:24:16 +01:00
dhewg
532b642222
Get rid of checkOS() and checkDVD()
...
Former is already handled by cmake via -mmacosx-version-min=
and the latter is just a stub.
2012-01-05 00:24:15 +01:00
dhewg
8e5702ef36
Get rid of applicationShouldTerminate()
...
Redundant, already handled by SDL_QUIT event.
2012-01-05 00:24:15 +01:00
dhewg
23752a2cd2
Get rid of applicationDidFinishLaunching()
...
SDL already implements this for us and the assert()s are
already part of idlib.
2012-01-05 00:24:15 +01:00
spiral
ec0f836f41
Generate an .app bundle for OSX
...
Add missing SDLMain and icon/resource files to generated .xcodeproj
Now builds on Lion in XCode4 with the 10.6 SDK using LLVM-GCC4.2.
Also tested on WinXP in VS 9 2008 Professional, I don't appear to have
broken anything there, stuff like MACOSX_BUNDLE_INFO_PLIST is
effectively ignored.
2012-01-05 00:24:15 +01:00
spiral
6453bce10c
We don't need XOPEN_SOURCE deprecated content
...
Just what's in sys/ucontext.h specifically.
2012-01-05 00:24:15 +01:00
dhewg
1fed72fbb4
Get rid of Sys_DoPreferences()
...
The OSX backend was the only one utilizing this to set CVars
for the video mode.
Not required anymore since its now based on SDL.
2012-01-05 00:24:13 +01:00
dhewg
3c90c12605
Don't link against X11 libraries
...
Not required anymore. All backends use SDL based implementations
now.
2012-01-05 00:24:13 +01:00
dhewg
bf69f7ec76
Use SDL GLimp and input implementations on OSX
2012-01-05 00:24:13 +01:00
dhewg
8df54ffad2
Move OSX ATI_fragment_shader functions
...
Move the software implementation to
sys/glimp_ati_fragment_shader.cpp in preparation to move to
the SDL based GLimp and events.
2012-01-05 00:24:12 +01:00
dhewg
36870b7e10
Get rid of stubs in the OSX backend
2012-01-05 00:24:12 +01:00
dhewg
b875b54b8b
Get rid of Sys_FadeScreens() and Sys_UnfadeScreens()
...
Unused functions in the OSX backend.
2012-01-05 00:24:12 +01:00
dhewg
fdd6360712
Get rid of Sys_PauseGL() and Sys_ResumeGL()
...
Unused functions in the OSX backend.
2012-01-05 00:24:12 +01:00
dhewg
fa8e50a086
Get rid of unused Sys_Hide() and Sys_Unhide()
...
Unused functions in the OSX backend.
2012-01-05 00:24:12 +01:00
dhewg
cab89769b4
Get rid of dead code in the OSX backend
...
Not used by anything.
2012-01-05 00:24:11 +01:00
dhewg
42841c2435
Get rid of RegCodeHandler()
...
Unhooked ancient code in the OSX backend which isn't working
for D3XP.
2012-01-05 00:24:11 +01:00
dhewg
8fbc629be6
Add support for spanish keyboard layouts
...
There is no keyNum_t for º or ª; catch unmapped console keys.
2012-01-05 00:21:43 +01:00
dhewg
bf30c8216a
Get rid of GetExceptionCodeInfo()
...
Unused function is the Windows backend.
2012-01-03 18:14:20 +01:00
dhewg
f7915a5ffa
Get rid of dead code in the Windows backend
...
Not used by anything.
2012-01-02 20:00:11 +01:00
dhewg
1af6da6fdd
Make the printf() family on Windows print to stdout
...
SDL logs this into stdout.txt for us.
2012-01-02 15:44:41 -05:00
dhewg
b83868090c
Use SDL GLimp and input implementations on Windows
...
The DirectX SDK is not required anymore.
2012-01-02 15:44:40 -05:00
dhewg
95233c470b
Use BufferCommandText() in win_syscon.cpp
...
Get rid of the dependency of the local event queue.
2012-01-02 15:44:36 -05:00
dhewg
44b35ccf13
Make Sys_GetScanTable() only available on Windows
...
Sys_GetScanTable() and MapKey() are only used by the Windows backend
or the Windows-only tools.
Rename to Win_GetScanTable() and move MapKey() as Win_MapKey() to
win_input.cpp.
2012-01-02 15:44:35 -05:00
dhewg
29013ff57d
Use SDL for r_swapInterval
...
Enables vsync support for more platforms than just Windows.
2012-01-02 15:44:28 -05:00