| 
									
										
										
										
											2015-05-24 06:55:12 +02:00
										 |  |  | // Copyright 2008 Dolphin Emulator Project
 | 
					
						
							| 
									
										
										
										
											2015-05-18 01:08:10 +02:00
										 |  |  | // Licensed under GPLv2+
 | 
					
						
							| 
									
										
										
										
											2013-04-17 23:09:55 -04:00
										 |  |  | // Refer to the license.txt file included.
 | 
					
						
							| 
									
										
										
										
											2009-03-07 08:35:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-10 13:54:46 -05:00
										 |  |  | #pragma once
 | 
					
						
							| 
									
										
										
										
											2009-03-07 08:35:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-17 15:51:19 -04:00
										 |  |  | // Directory separators, do we need this?
 | 
					
						
							| 
									
										
										
										
											2009-03-07 08:35:01 +00:00
										 |  |  | #define DIR_SEP "/"
 | 
					
						
							|  |  |  | #define DIR_SEP_CHR '/'
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-02 21:56:29 +00:00
										 |  |  | // The user data dir
 | 
					
						
							| 
									
										
										
										
											2009-03-07 08:35:01 +00:00
										 |  |  | #define ROOT_DIR "."
 | 
					
						
							| 
									
										
										
										
											2010-02-02 23:21:19 +00:00
										 |  |  | #ifdef _WIN32
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define USERDATA_DIR "User"
 | 
					
						
							|  |  |  | #define DOLPHIN_DATA_DIR "Dolphin"
 | 
					
						
							| 
									
										
										
										
											2009-03-07 08:35:01 +00:00
										 |  |  | #elif defined __APPLE__
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | // 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"
 | 
					
						
							| 
									
										
										
										
											2013-02-26 13:49:00 -06:00
										 |  |  | #elif defined ANDROID
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define USERDATA_DIR "user"
 | 
					
						
							|  |  |  | #define DOLPHIN_DATA_DIR "/sdcard/dolphin-emu"
 | 
					
						
							| 
									
										
										
										
											2010-07-20 02:45:31 +00:00
										 |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define USERDATA_DIR "user"
 | 
					
						
							|  |  |  | #define DOLPHIN_DATA_DIR "dolphin-emu"
 | 
					
						
							| 
									
										
										
										
											2009-03-07 08:35:01 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-11 00:17:29 -05:00
										 |  |  | // Shared data dirs (Sys and shared User for Linux)
 | 
					
						
							| 
									
										
										
										
											2015-11-07 10:50:47 -08:00
										 |  |  | #if defined(_WIN32) || defined(LINUX_LOCAL_DEV)
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define SYSDATA_DIR "Sys"
 | 
					
						
							| 
									
										
										
										
											2010-02-02 21:56:29 +00:00
										 |  |  | #elif defined __APPLE__
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define SYSDATA_DIR "Contents/Resources/Sys"
 | 
					
						
							| 
									
										
										
										
											2013-02-26 13:49:00 -06:00
										 |  |  | #elif defined ANDROID
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define SYSDATA_DIR "/sdcard/dolphin-emu"
 | 
					
						
							| 
									
										
										
										
											2010-07-20 02:45:31 +00:00
										 |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #ifdef DATA_DIR
 | 
					
						
							|  |  |  | #define SYSDATA_DIR DATA_DIR "sys"
 | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  | #define SYSDATA_DIR "sys"
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2010-02-02 21:56:29 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-07 08:35:01 +00:00
										 |  |  | // Dirs in both User and Sys
 | 
					
						
							|  |  |  | #define EUR_DIR "EUR"
 | 
					
						
							|  |  |  | #define USA_DIR "USA"
 | 
					
						
							|  |  |  | #define JAP_DIR "JAP"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-02 21:56:29 +00:00
										 |  |  | // Subdirs in the User dir returned by GetUserPath(D_USER_IDX)
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #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"
 | 
					
						
							| 
									
										
										
										
											2015-07-11 10:31:03 +02:00
										 |  |  | #define DUMP_SSL_DIR "SSL"
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #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"
 | 
					
						
							| 
									
										
										
										
											2017-01-03 03:31:45 +01:00
										 |  |  | #define WFSROOT_DIR "WFS"
 | 
					
						
							| 
									
										
										
										
											2016-12-23 20:37:23 -05:00
										 |  |  | #define BACKUP_DIR "Backup"
 | 
					
						
							| 
									
										
										
										
											2009-03-07 08:35:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-04-18 19:34:46 +02:00
										 |  |  | // This one is only used to remove it if it was present
 | 
					
						
							|  |  |  | #define SHADERCACHE_LEGACY_DIR "ShaderCache"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-30 10:58:50 +02:00
										 |  |  | // The theme directory used by default
 | 
					
						
							|  |  |  | #define DEFAULT_THEME_DIR "Clean"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-07 08:35:01 +00:00
										 |  |  | // Filenames
 | 
					
						
							| 
									
										
										
										
											2010-02-02 21:56:29 +00:00
										 |  |  | // Files in the directory returned by GetUserPath(D_CONFIG_IDX)
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define DOLPHIN_CONFIG "Dolphin.ini"
 | 
					
						
							| 
									
										
										
										
											2016-01-14 16:37:33 -06:00
										 |  |  | #define GCPAD_CONFIG "GCPadNew.ini"
 | 
					
						
							|  |  |  | #define WIIPAD_CONFIG "WiimoteNew.ini"
 | 
					
						
							|  |  |  | #define GCKEYBOARD_CONFIG "GCKeyNew.ini"
 | 
					
						
							|  |  |  | #define GFX_CONFIG "GFX.ini"
 | 
					
						
							| 
									
										
										
										
											2014-02-16 23:51:41 -05:00
										 |  |  | #define DEBUGGER_CONFIG "Debugger.ini"
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define LOGGER_CONFIG "Logger.ini"
 | 
					
						
							| 
									
										
										
										
											2016-01-14 16:37:33 -06:00
										 |  |  | #define UI_CONFIG "UI.ini"
 | 
					
						
							| 
									
										
										
										
											2010-02-02 21:56:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | // Files in the directory returned by GetUserPath(D_LOGS_IDX)
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define MAIN_LOG "dolphin.log"
 | 
					
						
							| 
									
										
										
										
											2010-02-02 21:56:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | // Files in the directory returned by GetUserPath(D_WIISYSCONF_IDX)
 | 
					
						
							| 
									
										
										
										
											2014-02-16 23:51:41 -05:00
										 |  |  | #define WII_SYSCONF "SYSCONF"
 | 
					
						
							| 
									
										
										
										
											2009-03-07 08:35:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-02 21:56:29 +00:00
										 |  |  | // Files in the directory returned by GetUserPath(D_DUMP_IDX)
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define RAM_DUMP "ram.raw"
 | 
					
						
							|  |  |  | #define ARAM_DUMP "aram.raw"
 | 
					
						
							| 
									
										
										
										
											2014-02-16 23:51:41 -05:00
										 |  |  | #define FAKEVMEM_DUMP "fakevmem.raw"
 | 
					
						
							| 
									
										
										
										
											2010-02-02 21:56:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-29 17:59:16 -08:00
										 |  |  | // Files in the directory returned by GetUserPath(D_MEMORYWATCHER_IDX)
 | 
					
						
							|  |  |  | #define MEMORYWATCHER_LOCATIONS "Locations.txt"
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define MEMORYWATCHER_SOCKET "MemoryWatcher"
 | 
					
						
							| 
									
										
										
										
											2015-12-29 17:59:16 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-02 21:56:29 +00:00
										 |  |  | // Sys files
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define TOTALDB "totaldb.dsy"
 | 
					
						
							| 
									
										
										
										
											2010-02-02 21:56:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-12-26 15:49:39 +01:00
										 |  |  | #define FONT_WINDOWS_1252 "font_western.bin"
 | 
					
						
							|  |  |  | #define FONT_SHIFT_JIS "font_japanese.bin"
 | 
					
						
							| 
									
										
										
										
											2009-03-07 08:35:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define DSP_IROM "dsp_rom.bin"
 | 
					
						
							|  |  |  | #define DSP_COEF "dsp_coef.bin"
 | 
					
						
							| 
									
										
										
										
											2009-03-07 08:35:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define GC_IPL "IPL.bin"
 | 
					
						
							|  |  |  | #define GC_SRAM "SRAM.raw"
 | 
					
						
							| 
									
										
										
										
											2014-02-16 23:51:41 -05:00
										 |  |  | #define GC_MEMCARDA "MemoryCardA"
 | 
					
						
							|  |  |  | #define GC_MEMCARDB "MemoryCardB"
 | 
					
						
							| 
									
										
										
										
											2009-03-07 08:35:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  | #define WII_STATE "state.dat"
 | 
					
						
							| 
									
										
										
										
											2012-04-21 16:21:13 +12:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-07-16 21:40:19 +02:00
										 |  |  | #define WII_SDCARD "sd.raw"
 | 
					
						
							| 
									
										
										
										
											2016-10-02 16:59:41 +02:00
										 |  |  | #define WII_BTDINF_BACKUP "btdinf.bak"
 | 
					
						
							| 
									
										
										
										
											2016-07-16 21:40:19 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-16 23:51:41 -05:00
										 |  |  | #define WII_SETTING "setting.txt"
 | 
					
						
							| 
									
										
										
										
											2009-03-07 08:35:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-01-02 15:14:30 +11:00
										 |  |  | #define GECKO_CODE_HANDLER "codehandler.bin"
 | 
					
						
							| 
									
										
										
										
											2011-12-31 15:18:48 +11:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-02 21:56:29 +00:00
										 |  |  | // Subdirs in Sys
 | 
					
						
							|  |  |  | #define GC_SYS_DIR "GC"
 | 
					
						
							|  |  |  | #define WII_SYS_DIR "Wii"
 |