Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if _WIN32
- #define GetResourcesFolderString GetResourcesFolderStringW
- #elif ((macintosh) || (Macintosh) || (__APPLE__ & __MACH__))
- #define GetResourcesFolderString GetResourcesFolderStringM
- #elif __gnu_linux__
- #define GetResourcesFolderString GetResourcesFolderStringU
- //...and so on
- #endif
- //...Later...
- std::string GetResourcesFolderStringW() {
- return "C:/Program files/myappname/"
- }
- std::string GetResourcesFolderStringM() {
- return "Mac folder path here";
- }
- std::string GetResourcesFolderStringU() {
- return "/usr/share/pixmaps/";
- }
Add Comment
Please, Sign In to add comment