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