common_paths.h 2.0 KB

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