Commit graph

18 commits

Author SHA1 Message Date
Sam Lantinga
f7fda2b389 Christoph Mallon: Remove pointless if (x) before SDL_free(x) 2013-08-29 08:29:21 -07:00
Sam Lantinga
3f1c70c044 Christoph Mallon: Correct indendation. 2013-08-29 08:27:25 -07:00
Sam Lantinga
353227c74e Christoph Mallon: Use SDL_arraysize() 2013-08-29 08:26:55 -07:00
Sam Lantinga
012380adcd Christoph Mallon: Report an error, if creating the directories in SDL_GetPrefPath() failed. 2013-08-29 08:25:54 -07:00
Sam Lantinga
5b05d9e95f Christoph Mallon: Remove lone /* if */ comment. 2013-08-29 08:25:24 -07:00
Sam Lantinga
2485a8430e Christoph Mallon: Simplify avoidance of duplicate / in SDL_GetPrefPath() 2013-08-29 08:24:43 -07:00
Edward Rudd
a9a7fb7d82 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
807e5ccb6d Minor FreeBSD code cleanup. 2013-08-24 21:15:10 -04:00
Edward Rudd
8d164f06ea 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
9bc89f40b9 Patched to compile on Solaris. 2013-08-23 23:34:23 -04:00
Ryan C. Gordon
a22e8c931d Patched to compile on FreeBSD. 2013-08-23 21:48:40 -04:00
Ryan C. Gordon
c9caaf317a Add support for some BSDs and Solaris to SDL_GetBasePath(). 2013-08-23 21:38:54 -04:00
Ryan C. Gordon
ec08df6bad 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
1551ff427b Patched to compile on iOS. 2013-08-20 21:21:57 -04:00
Ryan C. Gordon
433252b9e8 More Haiku fixes. 2013-08-20 20:39:22 -04:00
Ryan C. Gordon
1fd2f5f98d More Windows fixes for filesystem code. 2013-08-20 20:29:30 -04:00
Ryan C. Gordon
bfd88e7351 Patched new filesystem code to compile. 2013-08-20 20:15:15 -04:00
Ryan C. Gordon
c9218e986d Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module. 2013-08-20 19:57:11 -04:00