Hello,
I'm working on a cross-platform app using SFML 1.6. I'm currently using XCode 3.1.4 under MacOSX 10.5.8. I'd like to maintain a separate path for each platfrom to load its files from. Mac seems to be the only one that uses relative path for its resources in an app bundle. For now I've been using absolute paths to where my resources can be stored but that won't work in production code.
Here's how it's defined:
#ifndef __SYSTEM_SPECIFIC_H__
# define __SYSTEM_SPECIFIC_H__
# include <SFML/Config.hpp>
# ifdef SFML_SYSTEM_MACOS
# define RESOURCEPATH "../Resources/"
//# define RESOURCEPATH "/Users/samuraicrow/Documents/EventideCode/"
# else
# ifdef SFML_SYSTEM_LINUX
# define RESOURCEPATH "/usr/share/games/eventide/"
# else
# define RESOURCEPATH "Resources/"
# endif
# endif
#endif