Guest User

Untitled

a guest
Jan 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #if _WIN32
  2. #define GetResourcesFolderString GetResourcesFolderStringW
  3. #elif ((macintosh) || (Macintosh) || (__APPLE__ & __MACH__))
  4. #define GetResourcesFolderString GetResourcesFolderStringM
  5. #elif __gnu_linux__
  6. #define GetResourcesFolderString GetResourcesFolderStringU
  7. //...and so on
  8. #endif
  9.  
  10. //...Later...
  11.  
  12. std::string GetResourcesFolderStringW() {
  13. return "C:/Program files/myappname/"
  14. }
  15. std::string GetResourcesFolderStringM() {
  16. return "Mac folder path here";
  17. }
  18. std::string GetResourcesFolderStringU() {
  19. return "/usr/share/pixmaps/";
  20. }
Add Comment
Please, Sign In to add comment