Sam Lantinga
b0e0446659
Added missing copyright notices
2014-03-13 21:21:26 -07:00
David Ludwig
3fe569fba7
build fixes for most WinRT-related files
...
Still TODO: getting the D3D11 renderer back up and running in VC 2012.
2014-03-10 21:21:35 -04:00
Ryan C. Gordon
0568a0661e
Removed unused variable.
2014-03-10 00:48:41 -04:00
Sam Lantinga
0ae88759fb
Integrated David Ludwig's support for Windows RT
2014-03-09 11:36:47 -07:00
Sam Lantinga
32547d0c59
Fixed line endings on WinRT source code
2014-03-09 11:06:11 -07:00
Ryan C. Gordon
a2dcb239e0
Force Windows version of SDL_GetPrefPath() to Unicode, create missing dirs.
...
Fixes Bugzilla #2273 .
2014-03-01 20:28:40 -05:00
Sam Lantinga
dba255c1e5
Fixed bug 2374 - Update copyright for 2014...
...
Is it that time already??
2014-02-02 00:53:27 -08:00
David Ludwig
c96c4f3dc4
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
03d5719413
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.
2013-11-24 23:56:17 -05:00
Ryan C. Gordon
b444dd2714
Renamed things named after BeOS to be named after Haiku instead.
2013-11-14 11:51:24 -05:00
David Ludwig
9d33b7fa64
WinRT: added a comment regarding the lack of SHGetFolderPath on WinRT
2013-10-28 15:52:04 -04:00
David Ludwig
9777309179
WinRT: implemented SDL_GetBasePath and SDL_GetPrefPath
2013-10-28 15:41:22 -04:00
Ryan C. Gordon
0a23ec5f84
Fixed buffer overflow.
2013-10-24 00:00:10 -04:00
Ryan C. Gordon
e1ee854340
SDL_GetPrefPath() now uses the organization on all platforms.
...
Even if that's not the general convention for a given platform.
2013-10-23 00:58:20 -04:00
Sam Lantinga
4b4f03c527
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
7bab7a4662
Fixed bug 2121 - GCC throws error on SDL_FORCE_INLINE when compiling with -ansi
2013-09-30 22:35:32 -07:00
Sam Lantinga
753aae78fc
Christoph Mallon: Remove pointless if (x) before SDL_free(x)
2013-08-29 08:29:21 -07:00
Sam Lantinga
79bc5ff6ac
Christoph Mallon: Correct indendation.
2013-08-29 08:27:25 -07:00
Sam Lantinga
e5bdcdce26
Christoph Mallon: Use SDL_arraysize()
2013-08-29 08:26:55 -07:00
Sam Lantinga
8f70297c38
Christoph Mallon: Report an error, if creating the directories in SDL_GetPrefPath() failed.
2013-08-29 08:25:54 -07:00
Sam Lantinga
3a2343d106
Christoph Mallon: Remove lone /* if */ comment.
2013-08-29 08:25:24 -07:00
Sam Lantinga
1f0046b99f
Christoph Mallon: Simplify avoidance of duplicate / in SDL_GetPrefPath()
2013-08-29 08:24:43 -07:00
Edward Rudd
02e78e6604
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
a9e59a9c1c
Minor FreeBSD code cleanup.
2013-08-24 21:15:10 -04:00
Edward Rudd
0d9b3f9116
Fix #2062 Be more diligent about validating trailing "/" existence in HOME and XDG_DATA_HOME env vars
2013-08-24 09:05:18 -04:00
Ryan C. Gordon
dcf1507675
Patched to compile on Solaris.
2013-08-23 23:34:23 -04:00
Ryan C. Gordon
e489ba1b6f
Patched to compile on FreeBSD.
2013-08-23 21:48:40 -04:00
Ryan C. Gordon
c25827b1f1
Add support for some BSDs and Solaris to SDL_GetBasePath().
2013-08-23 21:38:54 -04:00
Ryan C. Gordon
0382f2f764
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
66098d3179
Patched to compile on iOS.
2013-08-20 21:21:57 -04:00
Ryan C. Gordon
14cd2136c6
More Haiku fixes.
2013-08-20 20:39:22 -04:00
Ryan C. Gordon
9588bae18a
More Windows fixes for filesystem code.
2013-08-20 20:29:30 -04:00
Ryan C. Gordon
27f294dbb5
Patched new filesystem code to compile.
2013-08-20 20:15:15 -04:00
Ryan C. Gordon
8fe1cf47f2
Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module.
2013-08-20 19:57:11 -04:00