CommonPaths.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. // Copyright 2008 Dolphin Emulator Project
  2. // Licensed under GPLv2+
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. // Directory separators, do we need this?
  6. #define DIR_SEP "/"
  7. #define DIR_SEP_CHR '/'
  8. // The user data dir
  9. #define ROOT_DIR "."
  10. #ifdef _WIN32
  11. #define USERDATA_DIR "User"
  12. #define DOLPHIN_DATA_DIR "Dolphin"
  13. #elif defined __APPLE__
  14. // On OS X, USERDATA_DIR exists within the .app, but *always* reference
  15. // the copy in Application Support instead! (Copied on first run)
  16. // You can use the File::GetUserPath() util for this
  17. #define USERDATA_DIR "Contents/Resources/User"
  18. #define DOLPHIN_DATA_DIR "Library/Application Support/Dolphin"
  19. #elif defined ANDROID
  20. #define USERDATA_DIR "user"
  21. #define DOLPHIN_DATA_DIR "/sdcard/dolphin-emu"
  22. #else
  23. #define USERDATA_DIR "user"
  24. #ifdef USER_DIR
  25. #define DOLPHIN_DATA_DIR USER_DIR
  26. #else
  27. #define DOLPHIN_DATA_DIR ".dolphin"
  28. #endif
  29. #endif
  30. // Shared data dirs (Sys and shared User for Linux)
  31. #ifdef _WIN32
  32. #define SYSDATA_DIR "Sys"
  33. #elif defined __APPLE__
  34. #define SYSDATA_DIR "Contents/Resources/Sys"
  35. #elif defined ANDROID
  36. #define SYSDATA_DIR "/sdcard/dolphin-emu"
  37. #else
  38. #ifdef DATA_DIR
  39. #define SYSDATA_DIR DATA_DIR "sys"
  40. #else
  41. #define SYSDATA_DIR "sys"
  42. #endif
  43. #endif
  44. // Dirs in both User and Sys
  45. #define EUR_DIR "EUR"
  46. #define USA_DIR "USA"
  47. #define JAP_DIR "JAP"
  48. // Subdirs in the User dir returned by GetUserPath(D_USER_IDX)
  49. #define GC_USER_DIR "GC"
  50. #define WII_USER_DIR "Wii"
  51. #define CONFIG_DIR "Config"
  52. #define GAMESETTINGS_DIR "GameSettings"
  53. #define MAPS_DIR "Maps"
  54. #define CACHE_DIR "Cache"
  55. #define SHADERCACHE_DIR "ShaderCache"
  56. #define STATESAVES_DIR "StateSaves"
  57. #define SCREENSHOTS_DIR "ScreenShots"
  58. #define LOAD_DIR "Load"
  59. #define HIRES_TEXTURES_DIR "Textures"
  60. #define DUMP_DIR "Dump"
  61. #define DUMP_TEXTURES_DIR "Textures"
  62. #define DUMP_FRAMES_DIR "Frames"
  63. #define DUMP_AUDIO_DIR "Audio"
  64. #define DUMP_DSP_DIR "DSP"
  65. #define LOGS_DIR "Logs"
  66. #define MAIL_LOGS_DIR "Mail"
  67. #define SHADERS_DIR "Shaders"
  68. #define WII_SYSCONF_DIR "shared2" DIR_SEP "sys"
  69. #define WII_WC24CONF_DIR "shared2" DIR_SEP "wc24"
  70. #define THEMES_DIR "Themes"
  71. #define ANAGLYPH_DIR "Anaglyph"
  72. // Filenames
  73. // Files in the directory returned by GetUserPath(D_CONFIG_IDX)
  74. #define DOLPHIN_CONFIG "Dolphin.ini"
  75. #define DEBUGGER_CONFIG "Debugger.ini"
  76. #define LOGGER_CONFIG "Logger.ini"
  77. // Files in the directory returned by GetUserPath(D_LOGS_IDX)
  78. #define MAIN_LOG "dolphin.log"
  79. // Files in the directory returned by GetUserPath(D_WIISYSCONF_IDX)
  80. #define WII_SYSCONF "SYSCONF"
  81. // Files in the directory returned by GetUserPath(D_DUMP_IDX)
  82. #define RAM_DUMP "ram.raw"
  83. #define ARAM_DUMP "aram.raw"
  84. #define FAKEVMEM_DUMP "fakevmem.raw"
  85. // Sys files
  86. #define TOTALDB "totaldb.dsy"
  87. #define FONT_ANSI "font_ansi.bin"
  88. #define FONT_SJIS "font_sjis.bin"
  89. #define DSP_IROM "dsp_rom.bin"
  90. #define DSP_COEF "dsp_coef.bin"
  91. #define GC_IPL "IPL.bin"
  92. #define GC_SRAM "SRAM.raw"
  93. #define GC_MEMCARDA "MemoryCardA"
  94. #define GC_MEMCARDB "MemoryCardB"
  95. #define WII_STATE "state.dat"
  96. #define WII_SETTING "setting.txt"
  97. #define GECKO_CODE_HANDLER "codehandler.bin"
  98. // Subdirs in Sys
  99. #define GC_SYS_DIR "GC"
  100. #define WII_SYS_DIR "Wii"