/ src / common / common_paths.h
common_paths.h
 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  
 5  #pragma once
 6  
 7  // Directory separators, do we need this?
 8  #define DIR_SEP "/"
 9  #define DIR_SEP_CHR '/'
10  
11  #ifndef MAX_PATH
12  #define MAX_PATH 260
13  #endif
14  
15  // The user data dir
16  #define USERDATA_DIR "user"
17  #ifdef USER_DIR
18  #define EMU_DATA_DIR USER_DIR
19  #else
20  #ifdef _WIN32
21  #define EMU_DATA_DIR "Citra"
22  #elif defined(__APPLE__)
23  #include <TargetConditionals.h>
24  #if TARGET_OS_IPHONE
25  #define APPLE_EMU_DATA_DIR "Documents" DIR_SEP "Citra"
26  #else
27  #define APPLE_EMU_DATA_DIR "Library" DIR_SEP "Application Support" DIR_SEP "Citra"
28  #endif
29  // For compatibility with XDG paths.
30  #define EMU_DATA_DIR "citra-emu"
31  #else
32  #define EMU_DATA_DIR "citra-emu"
33  #endif
34  #endif
35  
36  // Dirs in both User and Sys
37  #define EUR_DIR "EUR"
38  #define USA_DIR "USA"
39  #define JAP_DIR "JAP"
40  
41  // Subdirs in the User dir returned by GetUserPath(UserPath::UserDir)
42  #define CONFIG_DIR "config"
43  #define CACHE_DIR "cache"
44  #define SDMC_DIR "sdmc"
45  #define NAND_DIR "nand"
46  #define SYSDATA_DIR "sysdata"
47  #define LOG_DIR "log"
48  #define CHEATS_DIR "cheats"
49  #define DLL_DIR "external_dlls"
50  #define SHADER_DIR "shaders"
51  #define DUMP_DIR "dump"
52  #define LOAD_DIR "load"
53  #define SHADER_DIR "shaders"
54  #define STATES_DIR "states"
55  
56  // Filenames
57  // Files in the directory returned by GetUserPath(UserPath::LogDir)
58  #define LOG_FILE "citra_log.txt"
59  
60  // Files in the directory returned by GetUserPath(UserPath::ConfigDir)
61  #define EMU_CONFIG "emu.ini"
62  #define DEBUGGER_CONFIG "debugger.ini"
63  #define LOGGER_CONFIG "logger.ini"
64  
65  // Sys files
66  #define SHARED_FONT "shared_font.bin"
67  #define AES_KEYS "aes_keys.txt"
68  #define BOOTROM9 "boot9.bin"
69  #define SECRET_SECTOR "sector0x96.bin"