File: CommonPaths.h

package info (click to toggle)
dolphin-emu 5.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 28,976 kB
  • ctags: 35,666
  • sloc: cpp: 213,139; java: 6,252; asm: 2,277; xml: 1,998; ansic: 1,514; python: 462; sh: 279; pascal: 247; makefile: 124; perl: 97
file content (124 lines) | stat: -rw-r--r-- 3,708 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
// Copyright 2008 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.

#pragma once

// Directory separators, do we need this?
#define DIR_SEP "/"
#define DIR_SEP_CHR '/'

// The user data dir
#define ROOT_DIR "."
#ifdef _WIN32
	#define USERDATA_DIR "User"
	#define DOLPHIN_DATA_DIR "Dolphin"
#elif defined __APPLE__
	// On OS X, USERDATA_DIR exists within the .app, but *always* reference
	// the copy in Application Support instead! (Copied on first run)
	// You can use the File::GetUserPath() util for this
	#define USERDATA_DIR "Contents/Resources/User"
	#define DOLPHIN_DATA_DIR "Library/Application Support/Dolphin"
#elif defined ANDROID
	#define USERDATA_DIR "user"
	#define DOLPHIN_DATA_DIR "/sdcard/dolphin-emu"
#else
	#define USERDATA_DIR "user"
	#define DOLPHIN_DATA_DIR "dolphin-emu"
#endif

// Shared data dirs (Sys and shared User for Linux)
#if defined(_WIN32) || defined(LINUX_LOCAL_DEV)
	#define SYSDATA_DIR "Sys"
#elif defined __APPLE__
	#define SYSDATA_DIR "Contents/Resources/Sys"
#elif defined ANDROID
	#define SYSDATA_DIR "/sdcard/dolphin-emu"
#else
	#ifdef DATA_DIR
		#define SYSDATA_DIR DATA_DIR "sys"
	#else
		#define SYSDATA_DIR "sys"
	#endif
#endif

// Dirs in both User and Sys
#define EUR_DIR "EUR"
#define USA_DIR "USA"
#define JAP_DIR "JAP"

// Subdirs in the User dir returned by GetUserPath(D_USER_IDX)
#define GC_USER_DIR         "GC"
#define WII_USER_DIR        "Wii"
#define CONFIG_DIR          "Config"
#define GAMESETTINGS_DIR    "GameSettings"
#define MAPS_DIR            "Maps"
#define CACHE_DIR           "Cache"
#define SHADERCACHE_DIR     "Shaders"
#define STATESAVES_DIR      "StateSaves"
#define SCREENSHOTS_DIR     "ScreenShots"
#define LOAD_DIR            "Load"
#define HIRES_TEXTURES_DIR  "Textures"
#define DUMP_DIR            "Dump"
#define DUMP_TEXTURES_DIR   "Textures"
#define DUMP_FRAMES_DIR     "Frames"
#define DUMP_AUDIO_DIR      "Audio"
#define DUMP_DSP_DIR        "DSP"
#define LOGS_DIR            "Logs"
#define MAIL_LOGS_DIR       "Mail"
#define SHADERS_DIR         "Shaders"
#define WII_SYSCONF_DIR     "shared2" DIR_SEP "sys"
#define WII_WC24CONF_DIR    "shared2" DIR_SEP "wc24"
#define RESOURCES_DIR       "Resources"
#define THEMES_DIR          "Themes"
#define ANAGLYPH_DIR        "Anaglyph"
#define PIPES_DIR           "Pipes"
#define MEMORYWATCHER_DIR   "MemoryWatcher"

// This one is only used to remove it if it was present
#define SHADERCACHE_LEGACY_DIR "ShaderCache"

// Filenames
// Files in the directory returned by GetUserPath(D_CONFIG_IDX)
#define DOLPHIN_CONFIG  "Dolphin.ini"
#define DEBUGGER_CONFIG "Debugger.ini"
#define LOGGER_CONFIG   "Logger.ini"

// Files in the directory returned by GetUserPath(D_LOGS_IDX)
#define MAIN_LOG    "dolphin.log"

// Files in the directory returned by GetUserPath(D_WIISYSCONF_IDX)
#define WII_SYSCONF "SYSCONF"

// Files in the directory returned by GetUserPath(D_DUMP_IDX)
#define RAM_DUMP      "ram.raw"
#define ARAM_DUMP     "aram.raw"
#define FAKEVMEM_DUMP "fakevmem.raw"

// Files in the directory returned by GetUserPath(D_MEMORYWATCHER_IDX)
#define MEMORYWATCHER_LOCATIONS "Locations.txt"
#define MEMORYWATCHER_SOCKET    "MemoryWatcher"

// Sys files
#define TOTALDB     "totaldb.dsy"

#define FONT_ANSI   "font_ansi.bin"
#define FONT_SJIS   "font_sjis.bin"

#define DSP_IROM    "dsp_rom.bin"
#define DSP_COEF    "dsp_coef.bin"

#define GC_IPL      "IPL.bin"
#define GC_SRAM     "SRAM.raw"
#define GC_MEMCARDA "MemoryCardA"
#define GC_MEMCARDB "MemoryCardB"

#define WII_STATE   "state.dat"

#define WII_SETTING "setting.txt"

#define GECKO_CODE_HANDLER "codehandler.bin"

// Subdirs in Sys
#define GC_SYS_DIR "GC"
#define WII_SYS_DIR "Wii"