Commit graph

63 commits

Author SHA1 Message Date
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