None specific to SDL, since SDL really doesn’t deal with that stuff.
I use PhysicsFS, but that’s more oriented towards sandboxing (using a
virtual filesystem, so the program can only access the directories you
tell it to). However, it does provide that information.
2013/7/13, JeZ-l-Lee :> Cross-Platform(Win/Linux/Mac)Data Save Location Library
Hi,
I am looking for a cross-platform library that would work with SDL
to retrieve a safe location to save/load program data
on PC Windows/Linux/Mac OS X.
The library would have a function to return a path on the OS which would
allow full read/write access.
I tried Googling for a few hours, but nothing was found.
Thanks!
JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft®
Video Game Design Studio www.16BitSoft.com
I use PhysicsFS, but that’s more oriented towards sandboxing (using a
virtual filesystem, so the program can only access the directories you
tell it to). However, it does provide that information.
Being zlib-licensed, feel free to gank just that piece of functionality
out of the physfs source code if you want. Look for
__PHYSFS_platformCalcPrefDir() for various platforms’ implementations
(Windows, Unix/Linux, Mac OS X, BeOS).
Being zlib-licensed, feel free to gank just that piece of functionality out of the physfs source code if you want. Look for __PHYSFS_platformCalcPrefDir() for various platforms’ implementations (Windows, Unix/Linux, Mac OS X, BeOS).
–ryan
Hi,
Thanks, I’ll take a look in the morning.
I’m currently hitting “GameMaker: Studio” with a very large hammer!------------------------
JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft®
Video Game Design Studio www.16BitSoft.com