common_paths.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // Copyright 2013 Dolphin Emulator Project
  2. // Licensed under GPLv2
  3. // Refer to the license.txt file included.
  4. #ifndef _COMMON_PATHS_H_
  5. #define _COMMON_PATHS_H_
  6. // Make sure we pick up USER_DIR if set in config.h
  7. #include "common/common.h"
  8. // Directory seperators, do we need this?
  9. #define DIR_SEP "/"
  10. #define DIR_SEP_CHR '/'
  11. #ifndef MAX_PATH
  12. #define MAX_PATH 260
  13. #endif
  14. // The user data dir
  15. #define ROOT_DIR "."
  16. #ifdef _WIN32
  17. #define USERDATA_DIR "user"
  18. #define EMU_DATA_DIR "emu"
  19. #else
  20. #define USERDATA_DIR "user"
  21. #ifdef USER_DIR
  22. #define EMU_DATA_DIR USER_DIR
  23. #else
  24. #define EMU_DATA_DIR ".emu"
  25. #endif
  26. #endif
  27. // Shared data dirs (Sys and shared User for linux)
  28. #ifdef _WIN32
  29. #define SYSDATA_DIR "sys"
  30. #else
  31. #ifdef DATA_DIR
  32. #define SYSDATA_DIR DATA_DIR "sys"
  33. #define SHARED_USER_DIR DATA_DIR USERDATA_DIR DIR_SEP
  34. #else
  35. #define SYSDATA_DIR "sys"
  36. #define SHARED_USER_DIR ROOT_DIR DIR_SEP USERDATA_DIR DIR_SEP
  37. #endif
  38. #endif
  39. // Dirs in both User and Sys
  40. #define EUR_DIR "EUR"
  41. #define USA_DIR "USA"
  42. #define JAP_DIR "JAP"
  43. // Subdirs in the User dir returned by GetUserPath(D_USER_IDX)
  44. #define CONFIG_DIR "config"
  45. #define GAMECONFIG_DIR "game_config"
  46. #define MAPS_DIR "maps"
  47. #define CACHE_DIR "cache"
  48. #define SHADERCACHE_DIR "shader_cache"
  49. #define STATESAVES_DIR "state_saves"
  50. #define SCREENSHOTS_DIR "screenShots"
  51. #define DUMP_DIR "dump"
  52. #define DUMP_TEXTURES_DIR "textures"
  53. #define DUMP_FRAMES_DIR "frames"
  54. #define DUMP_AUDIO_DIR "audio"
  55. #define LOGS_DIR "logs"
  56. #define SHADERS_DIR "shaders"
  57. #define SYSCONF_DIR "sysconf"
  58. // Filenames
  59. // Files in the directory returned by GetUserPath(D_CONFIG_IDX)
  60. #define EMU_CONFIG "emu.ini"
  61. #define DEBUGGER_CONFIG "debugger.ini"
  62. #define LOGGER_CONFIG "logger.ini"
  63. // Files in the directory returned by GetUserPath(D_LOGS_IDX)
  64. #define MAIN_LOG "emu.log"
  65. // Files in the directory returned by GetUserPath(D_SYSCONF_IDX)
  66. #define SYSCONF "SYSCONF"
  67. #endif // _COMMON_PATHS_H_