2015-05-23 22:55:12 -06:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2021-07-04 19:22:19 -06:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2009-03-07 01:35:01 -07:00
|
|
|
|
2014-02-10 11:54:46 -07:00
|
|
|
#pragma once
|
2009-03-07 01:35:01 -07:00
|
|
|
|
2014-10-17 13:51:19 -06:00
|
|
|
// Directory separators, do we need this?
|
2009-03-07 01:35:01 -07:00
|
|
|
#define DIR_SEP "/"
|
|
|
|
#define DIR_SEP_CHR '/'
|
|
|
|
|
2023-01-17 12:20:57 -07:00
|
|
|
// The current working directory
|
2009-03-07 01:35:01 -07:00
|
|
|
#define ROOT_DIR "."
|
2023-01-17 12:20:57 -07:00
|
|
|
|
|
|
|
// The normal user directory
|
2010-02-02 16:21:19 -07:00
|
|
|
#ifdef _WIN32
|
2023-01-17 12:14:05 -07:00
|
|
|
#define NORMAL_USER_DIR "Dolphin Emulator"
|
2023-01-17 12:20:57 -07:00
|
|
|
#elif defined(__APPLE__)
|
2023-01-17 12:13:36 -07:00
|
|
|
#define NORMAL_USER_DIR "Library/Application Support/Dolphin"
|
2023-01-17 12:20:57 -07:00
|
|
|
#elif defined(ANDROID)
|
2023-01-17 12:13:36 -07:00
|
|
|
#define NORMAL_USER_DIR "/sdcard/dolphin-emu"
|
2023-01-17 12:20:57 -07:00
|
|
|
#else
|
|
|
|
#define NORMAL_USER_DIR "dolphin-emu"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// The portable user directory
|
|
|
|
#ifdef _WIN32
|
|
|
|
#define PORTABLE_USER_DIR "User"
|
|
|
|
#elif defined(__APPLE__)
|
|
|
|
#define PORTABLE_USER_DIR "User"
|
|
|
|
#define EMBEDDED_USER_DIR "Contents/Resources/User"
|
2010-07-19 20:45:31 -06:00
|
|
|
#else
|
2023-01-17 12:13:14 -07:00
|
|
|
#define PORTABLE_USER_DIR "user"
|
2023-01-17 12:17:10 -07:00
|
|
|
#define EMBEDDED_USER_DIR PORTABLE_USER_DIR
|
2009-03-07 01:35:01 -07:00
|
|
|
#endif
|
|
|
|
|
2023-01-17 12:20:57 -07:00
|
|
|
// Flag file to prevent media scanning from indexing a directory
|
|
|
|
#define NOMEDIA_FILE ".nomedia"
|
|
|
|
|
2009-03-07 01:35:01 -07:00
|
|
|
// Dirs in both User and Sys
|
2022-11-06 21:33:47 -07:00
|
|
|
// Legacy setups used /JAP/ while newer setups use /JPN/ by default.
|
2009-03-07 01:35:01 -07:00
|
|
|
#define EUR_DIR "EUR"
|
|
|
|
#define USA_DIR "USA"
|
|
|
|
#define JAP_DIR "JAP"
|
2022-11-06 21:33:47 -07:00
|
|
|
#define JPN_DIR "JPN"
|
2009-03-07 01:35:01 -07:00
|
|
|
|
2010-02-02 14:56:29 -07:00
|
|
|
// Subdirs in the User dir returned by GetUserPath(D_USER_IDX)
|
2013-08-24 23:35:32 -06:00
|
|
|
#define GC_USER_DIR "GC"
|
2021-07-04 04:51:36 -06:00
|
|
|
#define GBA_USER_DIR "GBA"
|
2010-02-02 14:56:29 -07:00
|
|
|
#define WII_USER_DIR "Wii"
|
2013-08-24 23:35:32 -06:00
|
|
|
#define CONFIG_DIR "Config"
|
2013-09-07 15:02:49 -06:00
|
|
|
#define GAMESETTINGS_DIR "GameSettings"
|
2013-08-24 23:35:32 -06:00
|
|
|
#define MAPS_DIR "Maps"
|
|
|
|
#define CACHE_DIR "Cache"
|
2018-07-29 19:16:37 -06:00
|
|
|
#define COVERCACHE_DIR "GameCovers"
|
2019-08-23 05:20:09 -06:00
|
|
|
#define REDUMPCACHE_DIR "Redump"
|
2015-04-18 11:34:46 -06:00
|
|
|
#define SHADERCACHE_DIR "Shaders"
|
2024-06-26 18:05:54 -06:00
|
|
|
#define RETROACHIEVEMENTSCACHE_DIR "RetroAchievements"
|
2010-02-02 14:56:29 -07:00
|
|
|
#define STATESAVES_DIR "StateSaves"
|
|
|
|
#define SCREENSHOTS_DIR "ScreenShots"
|
2013-08-24 23:35:32 -06:00
|
|
|
#define LOAD_DIR "Load"
|
2014-10-22 15:25:00 -06:00
|
|
|
#define HIRES_TEXTURES_DIR "Textures"
|
2021-09-25 22:16:55 -06:00
|
|
|
#define RIIVOLUTION_DIR "Riivolution"
|
2013-08-24 23:35:32 -06:00
|
|
|
#define DUMP_DIR "Dump"
|
|
|
|
#define DUMP_TEXTURES_DIR "Textures"
|
|
|
|
#define DUMP_FRAMES_DIR "Frames"
|
2018-06-06 06:42:41 -06:00
|
|
|
#define DUMP_OBJECTS_DIR "Objects"
|
2013-08-24 23:35:32 -06:00
|
|
|
#define DUMP_AUDIO_DIR "Audio"
|
|
|
|
#define DUMP_DSP_DIR "DSP"
|
2015-07-11 02:31:03 -06:00
|
|
|
#define DUMP_SSL_DIR "SSL"
|
2023-12-07 10:36:02 -07:00
|
|
|
#define DUMP_DEBUG_DIR "Debug"
|
|
|
|
#define DUMP_DEBUG_BRANCHWATCH_DIR "BranchWatch"
|
2024-04-05 17:21:10 -06:00
|
|
|
#define DUMP_DEBUG_JITBLOCKS_DIR "JitBlocks"
|
2013-08-24 23:35:32 -06:00
|
|
|
#define LOGS_DIR "Logs"
|
|
|
|
#define MAIL_LOGS_DIR "Mail"
|
2010-02-02 14:56:29 -07:00
|
|
|
#define SHADERS_DIR "Shaders"
|
2011-05-24 13:12:18 -06:00
|
|
|
#define WII_SYSCONF_DIR "shared2" DIR_SEP "sys"
|
2013-08-25 18:50:57 -06:00
|
|
|
#define WII_WC24CONF_DIR "shared2" DIR_SEP "wc24"
|
2015-10-30 03:04:54 -06:00
|
|
|
#define RESOURCES_DIR "Resources"
|
2013-08-24 23:35:32 -06:00
|
|
|
#define THEMES_DIR "Themes"
|
2018-05-06 10:25:37 -06:00
|
|
|
#define STYLES_DIR "Styles"
|
2021-07-04 04:51:36 -06:00
|
|
|
#define GBASAVES_DIR "Saves"
|
2015-01-02 17:33:30 -07:00
|
|
|
#define ANAGLYPH_DIR "Anaglyph"
|
2019-05-01 20:47:50 -06:00
|
|
|
#define PASSIVE_DIR "Passive"
|
2015-10-24 21:20:03 -06:00
|
|
|
#define PIPES_DIR "Pipes"
|
2019-05-03 13:46:37 -06:00
|
|
|
#define MEMORYWATCHER_DIR "MemoryWatcher"
|
2017-01-02 19:31:45 -07:00
|
|
|
#define WFSROOT_DIR "WFS"
|
2016-12-23 18:37:23 -07:00
|
|
|
#define BACKUP_DIR "Backup"
|
2018-11-17 08:36:28 -07:00
|
|
|
#define RESOURCEPACK_DIR "ResourcePacks"
|
2019-08-17 13:40:58 -06:00
|
|
|
#define DYNAMICINPUT_DIR "DynamicInputTextures"
|
2022-03-01 23:34:54 -07:00
|
|
|
#define GRAPHICSMOD_DIR "GraphicMods"
|
2022-04-16 20:10:36 -06:00
|
|
|
#define WIISDSYNC_DIR "WiiSDSync"
|
2022-12-18 01:43:28 -07:00
|
|
|
#define ASSEMBLY_DIR "SavedAssembly"
|
2009-03-07 01:35:01 -07:00
|
|
|
|
2015-04-18 11:34:46 -06:00
|
|
|
// This one is only used to remove it if it was present
|
|
|
|
#define SHADERCACHE_LEGACY_DIR "ShaderCache"
|
|
|
|
|
2016-06-30 02:58:50 -06:00
|
|
|
// The theme directory used by default
|
|
|
|
#define DEFAULT_THEME_DIR "Clean"
|
|
|
|
|
2009-03-07 01:35:01 -07:00
|
|
|
// Filenames
|
2010-02-02 14:56:29 -07:00
|
|
|
// Files in the directory returned by GetUserPath(D_CONFIG_IDX)
|
|
|
|
#define DOLPHIN_CONFIG "Dolphin.ini"
|
2016-01-14 15:37:33 -07:00
|
|
|
#define GCPAD_CONFIG "GCPadNew.ini"
|
|
|
|
#define WIIPAD_CONFIG "WiimoteNew.ini"
|
|
|
|
#define GCKEYBOARD_CONFIG "GCKeyNew.ini"
|
|
|
|
#define GFX_CONFIG "GFX.ini"
|
2010-02-02 14:56:29 -07:00
|
|
|
#define LOGGER_CONFIG "Logger.ini"
|
2019-10-26 10:05:16 -06:00
|
|
|
#define DUALSHOCKUDPCLIENT_CONFIG "DSUClient.ini"
|
2020-07-22 18:19:35 -06:00
|
|
|
#define FREELOOK_CONFIG "FreeLook.ini"
|
2023-03-16 07:06:24 -06:00
|
|
|
#define RETROACHIEVEMENTS_CONFIG "RetroAchievements.ini"
|
2010-02-02 14:56:29 -07:00
|
|
|
|
|
|
|
// 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"
|
2009-03-07 01:35:01 -07:00
|
|
|
|
2010-02-02 14:56:29 -07:00
|
|
|
// Files in the directory returned by GetUserPath(D_DUMP_IDX)
|
2019-04-10 23:50:52 -06:00
|
|
|
#define MEM1_DUMP "mem1.raw"
|
|
|
|
#define MEM2_DUMP "mem2.raw"
|
2010-02-02 14:56:29 -07:00
|
|
|
#define ARAM_DUMP "aram.raw"
|
2012-06-19 05:51:29 -06:00
|
|
|
#define FAKEVMEM_DUMP "fakevmem.raw"
|
2010-02-02 14:56:29 -07:00
|
|
|
|
2019-05-03 13:46:37 -06:00
|
|
|
// Files in the directory returned by GetUserPath(D_MEMORYWATCHER_IDX)
|
|
|
|
#define MEMORYWATCHER_LOCATIONS "Locations.txt"
|
|
|
|
#define MEMORYWATCHER_SOCKET "MemoryWatcher"
|
|
|
|
|
2010-02-02 14:56:29 -07:00
|
|
|
// Sys files
|
|
|
|
#define TOTALDB "totaldb.dsy"
|
|
|
|
|
2016-12-26 07:49:39 -07:00
|
|
|
#define FONT_WINDOWS_1252 "font_western.bin"
|
|
|
|
#define FONT_SHIFT_JIS "font_japanese.bin"
|
2009-03-07 01:35:01 -07:00
|
|
|
|
2010-02-02 14:56:29 -07:00
|
|
|
#define DSP_IROM "dsp_rom.bin"
|
|
|
|
#define DSP_COEF "dsp_coef.bin"
|
2009-03-07 01:35:01 -07:00
|
|
|
|
2010-02-02 14:56:29 -07:00
|
|
|
#define GC_IPL "IPL.bin"
|
|
|
|
#define GC_SRAM "SRAM.raw"
|
|
|
|
#define GC_MEMCARDA "MemoryCardA"
|
|
|
|
#define GC_MEMCARDB "MemoryCardB"
|
2018-07-04 15:01:50 -06:00
|
|
|
#define GC_MEMCARD_NETPLAY "NetPlayTemp"
|
2009-03-07 01:35:01 -07:00
|
|
|
|
2021-07-04 04:51:36 -06:00
|
|
|
#define GBA_BIOS "gba_bios.bin"
|
2021-07-04 05:33:58 -06:00
|
|
|
#define GBA_SAVE_NETPLAY "NetPlayTemp"
|
2021-07-04 04:51:36 -06:00
|
|
|
|
2012-04-20 22:21:13 -06:00
|
|
|
#define WII_STATE "state.dat"
|
|
|
|
|
2022-06-15 15:51:25 -06:00
|
|
|
#define WII_SD_CARD_IMAGE "WiiSD.raw"
|
2016-10-02 08:59:41 -06:00
|
|
|
#define WII_BTDINF_BACKUP "btdinf.bak"
|
2016-07-16 13:40:19 -06:00
|
|
|
|
2011-05-06 21:52:32 -06:00
|
|
|
#define WII_SETTING "setting.txt"
|
2009-03-07 01:35:01 -07:00
|
|
|
|
2012-01-01 21:14:30 -07:00
|
|
|
#define GECKO_CODE_HANDLER "codehandler.bin"
|
2011-12-30 21:18:48 -07:00
|
|
|
|
2010-02-02 14:56:29 -07:00
|
|
|
// Subdirs in Sys
|
|
|
|
#define GC_SYS_DIR "GC"
|
|
|
|
#define WII_SYS_DIR "Wii"
|
2022-03-01 23:34:54 -07:00
|
|
|
|
|
|
|
// Subdirs in Config
|
|
|
|
#define GRAPHICSMOD_CONFIG_DIR "GraphicMods"
|
2023-05-31 16:05:06 -06:00
|
|
|
|
|
|
|
// GPU drivers
|
|
|
|
#define GPU_DRIVERS "GpuDrivers"
|
|
|
|
#define GPU_DRIVERS_EXTRACTED "Extracted"
|
|
|
|
#define GPU_DRIVERS_TMP "Tmp"
|
|
|
|
#define GPU_DRIVERS_HOOK "Hook"
|
|
|
|
#define GPU_DRIVERS_FILE_REDIRECT "FileRedirect"
|