Sam Lantinga
f9a5896819
Added missing copyright notices
2014-03-13 21:21:26 -07:00
David Ludwig
e8eb142748
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
8c7ee701a1
Removed unused variable.
2014-03-10 00:48:41 -04:00
Sam Lantinga
1367bf8748
Integrated David Ludwig's support for Windows RT
2014-03-09 11:36:47 -07:00
Sam Lantinga
05c23063bb
Fixed line endings on WinRT source code
2014-03-09 11:06:11 -07:00
Ryan C. Gordon
3e541f306d
Force Windows version of SDL_GetPrefPath() to Unicode, create missing dirs.
...
Fixes Bugzilla #2273 .
2014-03-01 20:28:40 -05:00
Sam Lantinga
58edac3e69
Fixed bug 2374 - Update copyright for 2014...
...
Is it that time already??
2014-02-02 00:53:27 -08:00
David Ludwig
46740a5a1c
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
7e1289af32
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
Gabriel Jacobo
f848adff5f
Improve Android pause/resume behavior.
2013-11-29 10:06:08 -03:00
Ryan C. Gordon
00003e8c00
Renamed things named after BeOS to be named after Haiku instead.
2013-11-14 11:51:24 -05:00
David Ludwig
ea12ff9faf
WinRT: added a comment regarding the lack of SHGetFolderPath on WinRT
2013-10-28 15:52:04 -04:00
David Ludwig
3236fc3a9f
WinRT: implemented SDL_GetBasePath and SDL_GetPrefPath
2013-10-28 15:41:22 -04:00
Ryan C. Gordon
609b58e441
Fixed buffer overflow.
2013-10-24 00:00:10 -04:00
Ryan C. Gordon
28aa076c8b
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
deb8086b08
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
69a4351eb0
Fixed bug 2121 - GCC throws error on SDL_FORCE_INLINE when compiling with -ansi
2013-09-30 22:35:32 -07:00
Sam Lantinga
f79fc33a39
Christoph Mallon: Remove pointless if (x) before SDL_free(x)
2013-08-29 08:29:21 -07:00
Sam Lantinga
1d2c7796ae
Christoph Mallon: Correct indendation.
2013-08-29 08:27:25 -07:00
Sam Lantinga
7267ea8f8b
Christoph Mallon: Use SDL_arraysize()
2013-08-29 08:26:55 -07:00
Sam Lantinga
67c10169ee
Christoph Mallon: Report an error, if creating the directories in SDL_GetPrefPath() failed.
2013-08-29 08:25:54 -07:00
Sam Lantinga
db7c92b4b4
Christoph Mallon: Remove lone /* if */ comment.
2013-08-29 08:25:24 -07:00
Sam Lantinga
321aa4ae10
Christoph Mallon: Simplify avoidance of duplicate / in SDL_GetPrefPath()
2013-08-29 08:24:43 -07:00
Edward Rudd
833fd30eb8
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
c9c6852f84
Minor FreeBSD code cleanup.
2013-08-24 21:15:10 -04:00
Edward Rudd
e5b65e4e03
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
58a558e326
Patched to compile on Solaris.
2013-08-23 23:34:23 -04:00
Ryan C. Gordon
88cd94a0eb
Patched to compile on FreeBSD.
2013-08-23 21:48:40 -04:00
Ryan C. Gordon
97948aef66
Add support for some BSDs and Solaris to SDL_GetBasePath().
2013-08-23 21:38:54 -04:00
Ryan C. Gordon
3984c7d8e3
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
9ff379ba67
Patched to compile on iOS.
2013-08-20 21:21:57 -04:00
Ryan C. Gordon
fb7a02912a
More Haiku fixes.
2013-08-20 20:39:22 -04:00
Ryan C. Gordon
ad8aa33bce
More Windows fixes for filesystem code.
2013-08-20 20:29:30 -04:00
Ryan C. Gordon
c9152adcb0
Patched new filesystem code to compile.
2013-08-20 20:15:15 -04:00
Ryan C. Gordon
2dd7091e50
Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module.
2013-08-20 19:57:11 -04:00