David Ludwig
e6f24f0b7c
build fixes for most WinRT-related files
...
Still TODO: getting the D3D11 renderer back up and running in VC 2012.
--HG--
extra : rebase_source : 16aa0948fea2b8997033ca5a09ddb9692d07edc4
2014-03-10 21:21:35 -04:00
Ryan C. Gordon
5b8f5159f3
Removed unused variable.
2014-03-10 00:48:41 -04:00
Sam Lantinga
a7d2ebb8d6
Integrated David Ludwig's support for Windows RT
2014-03-09 11:36:47 -07:00
Sam Lantinga
211b54deef
Fixed line endings on WinRT source code
2014-03-09 11:06:11 -07:00
Ryan C. Gordon
267f8fb155
Force Windows version of SDL_GetPrefPath() to Unicode, create missing dirs.
...
Fixes Bugzilla #2273 .
2014-03-01 20:28:40 -05:00
Sam Lantinga
d7940a513e
Fixed bug 2374 - Update copyright for 2014...
...
Is it that time already??
2014-02-02 00:53:27 -08:00
David Ludwig
ebfac58560
WinRT: merged with latest SDL 2.x/HG code
...
SDL 2.x recently accepted patches to enable OpenGL ES 2 support via Google's ANGLE library. The thought is to try to eventually merge SDL/WinRT's OpenGL code with SDL-official's.
2013-11-28 22:09:21 -05:00
Ryan C. Gordon
82edee6971
Make internal SDL sources include SDL_internal.h instead of SDL_config.h
...
The new header will include SDL_config.h, but allows for other global stuff.
--HG--
extra : rebase_source : ddf4a4c0dc2c554b98c82700798f343cd91b16e3
2013-11-24 23:56:17 -05:00
Ryan C. Gordon
30c46bacc8
Renamed things named after BeOS to be named after Haiku instead.
...
--HG--
rename : src/audio/baudio/SDL_beaudio.cc => src/audio/haiku/SDL_haikuaudio.cc
rename : src/audio/baudio/SDL_beaudio.h => src/audio/haiku/SDL_haikuaudio.h
rename : src/filesystem/beos/SDL_sysfilesystem.cc => src/filesystem/haiku/SDL_sysfilesystem.cc
rename : src/joystick/beos/SDL_bejoystick.cc => src/joystick/haiku/SDL_haikujoystick.cc
rename : src/loadso/beos/SDL_sysloadso.c => src/loadso/haiku/SDL_sysloadso.c
rename : src/main/beos/SDL_BApp.h => src/main/haiku/SDL_BApp.h
rename : src/main/beos/SDL_BeApp.cc => src/main/haiku/SDL_BeApp.cc
rename : src/main/beos/SDL_BeApp.h => src/main/haiku/SDL_BeApp.h
rename : src/power/beos/SDL_syspower.c => src/power/haiku/SDL_syspower.c
rename : src/timer/beos/SDL_systimer.c => src/timer/haiku/SDL_systimer.c
rename : src/video/bwindow/SDL_BWin.h => src/video/haiku/SDL_BWin.h
rename : src/video/bwindow/SDL_bclipboard.cc => src/video/haiku/SDL_bclipboard.cc
rename : src/video/bwindow/SDL_bclipboard.h => src/video/haiku/SDL_bclipboard.h
rename : src/video/bwindow/SDL_bevents.cc => src/video/haiku/SDL_bevents.cc
rename : src/video/bwindow/SDL_bevents.h => src/video/haiku/SDL_bevents.h
rename : src/video/bwindow/SDL_bframebuffer.cc => src/video/haiku/SDL_bframebuffer.cc
rename : src/video/bwindow/SDL_bframebuffer.h => src/video/haiku/SDL_bframebuffer.h
rename : src/video/bwindow/SDL_bkeyboard.cc => src/video/haiku/SDL_bkeyboard.cc
rename : src/video/bwindow/SDL_bkeyboard.h => src/video/haiku/SDL_bkeyboard.h
rename : src/video/bwindow/SDL_bmodes.cc => src/video/haiku/SDL_bmodes.cc
rename : src/video/bwindow/SDL_bmodes.h => src/video/haiku/SDL_bmodes.h
rename : src/video/bwindow/SDL_bopengl.cc => src/video/haiku/SDL_bopengl.cc
rename : src/video/bwindow/SDL_bopengl.h => src/video/haiku/SDL_bopengl.h
rename : src/video/bwindow/SDL_bvideo.cc => src/video/haiku/SDL_bvideo.cc
rename : src/video/bwindow/SDL_bvideo.h => src/video/haiku/SDL_bvideo.h
rename : src/video/bwindow/SDL_bwindow.cc => src/video/haiku/SDL_bwindow.cc
rename : src/video/bwindow/SDL_bwindow.h => src/video/haiku/SDL_bwindow.h
extra : rebase_source : afd5a42647878e283dbee3a666cef2214f0e7941
2013-11-14 11:51:24 -05:00
David Ludwig
f6e52c362a
WinRT: added a comment regarding the lack of SHGetFolderPath on WinRT
2013-10-28 15:52:04 -04:00
David Ludwig
e918745db0
WinRT: implemented SDL_GetBasePath and SDL_GetPrefPath
...
--HG--
rename : src/core/winrt/SDL_winrtpaths.cpp => src/filesystem/winrt/SDL_sysfilesystem.cpp
2013-10-28 15:41:22 -04:00
Ryan C. Gordon
84929c222e
Fixed buffer overflow.
2013-10-24 00:00:10 -04:00
Ryan C. Gordon
10fee37476
SDL_GetPrefPath() now uses the organization on all platforms.
...
Even if that's not the general convention for a given platform.
--HG--
extra : rebase_source : f3a8035be94bd416fca5bda09d1d93101bc4b688
2013-10-23 00:58:20 -04:00
Sam Lantinga
9eaceb18a0
Fixed bug 2072 - Make OS X's filesystem calls use -[NSString fileSystemRepresentation]
...
C.W. Betts
The recommended way of getting a file name that POSIX file APIs can open in OS X when using an NSString is -[NSString fileSystemRepresentation]. However, the current filesystem API in hg uses -[NSString UTF8String].
2013-10-21 00:20:27 -07:00
Sam Lantinga
414ff3106c
Fixed bug 2121 - GCC throws error on SDL_FORCE_INLINE when compiling with -ansi
2013-09-30 22:35:32 -07:00
Sam Lantinga
08dfaaa2e6
Christoph Mallon: Remove pointless if (x) before SDL_free(x)
2013-08-29 08:29:21 -07:00
Sam Lantinga
edc88be724
Christoph Mallon: Correct indendation.
2013-08-29 08:27:25 -07:00
Sam Lantinga
79dab26796
Christoph Mallon: Use SDL_arraysize()
2013-08-29 08:26:55 -07:00
Sam Lantinga
aca1b3acc7
Christoph Mallon: Report an error, if creating the directories in SDL_GetPrefPath() failed.
2013-08-29 08:25:54 -07:00
Sam Lantinga
911e984c36
Christoph Mallon: Remove lone /* if */ comment.
2013-08-29 08:25:24 -07:00
Sam Lantinga
18517df9b2
Christoph Mallon: Simplify avoidance of duplicate / in SDL_GetPrefPath()
2013-08-29 08:24:43 -07:00
Edward Rudd
7c3d505c9c
reworked GetBasePath on OS X to use Contents/Resource by default if bundled, or exedir if not bundled.
...
- also adds OS X specific magic for bundled apps adding an Info.plist property of name SDL_FILESYSTEM_BASE_DIR_TYPE to the following values will change the bahaviour.
* bundle -- use the bundle directory e.g. "/Applications/MyGame/Blah.app/"
* parent -- use the bundle parent directory e.g. "/Applications/MyGame/"
* resource -- use the bundle resource directory (default) e.g. "/Applications/MyGame/Blah.app/Contents/Resources/"
2013-08-25 11:24:01 -04:00
Ryan C. Gordon
1a56992a7d
Minor FreeBSD code cleanup.
2013-08-24 21:15:10 -04:00
Edward Rudd
455645d99a
Fix #2062 Be more diligent about validating trailing "/" existence in HOME and XDG_DATA_HOME env vars
...
--HG--
extra : amend_source : f857f2c2d14cf1fca0d5a5f4ca95c8acef79797e
2013-08-24 09:05:18 -04:00
Ryan C. Gordon
e94b620dc6
Patched to compile on Solaris.
2013-08-23 23:34:23 -04:00
Ryan C. Gordon
327661011c
Patched to compile on FreeBSD.
2013-08-23 21:48:40 -04:00
Ryan C. Gordon
b83dc371b8
Add support for some BSDs and Solaris to SDL_GetBasePath().
...
--HG--
extra : rebase_source : d2c9bc42ea618bcafdf8ec6c24d35d3123741fc6
2013-08-23 21:38:54 -04:00
Ryan C. Gordon
0f758bdbfd
Actually, this should be a memcpy().
...
We already know the exact length we just allocated, and we plan to append
our own null terminator to the end of the copy, so this makes more sense.
2013-08-20 23:20:32 -04:00
Ryan C. Gordon
0d45b5b986
Patched to compile on iOS.
2013-08-20 21:21:57 -04:00
Ryan C. Gordon
aa07924132
More Haiku fixes.
2013-08-20 20:39:22 -04:00
Ryan C. Gordon
56176b1b4b
More Windows fixes for filesystem code.
2013-08-20 20:29:30 -04:00
Ryan C. Gordon
4fef316c65
Patched new filesystem code to compile.
2013-08-20 20:15:15 -04:00
Ryan C. Gordon
2b9a2802b2
Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module.
...
--HG--
extra : rebase_source : c1fac232063443a2880e64f1abda85e0bdb2e710
2013-08-20 19:57:11 -04:00