2013-04-17 21:09:55 -06:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2009-03-07 01:35:01 -07:00
|
|
|
|
2009-03-28 02:57:34 -06:00
|
|
|
#ifndef _COMMON_PATHS_H_
|
|
|
|
#define _COMMON_PATHS_H_
|
2009-03-07 01:35:01 -07:00
|
|
|
|
2010-07-19 20:45:31 -06:00
|
|
|
// Make sure we pick up USER_DIR if set in config.h
|
|
|
|
#include "Common.h"
|
2010-02-02 14:56:29 -07:00
|
|
|
|
2009-03-07 01:35:01 -07:00
|
|
|
// Directory seperators, do we need this?
|
|
|
|
#define DIR_SEP "/"
|
|
|
|
#define DIR_SEP_CHR '/'
|
|
|
|
|
2010-02-02 14:56:29 -07:00
|
|
|
// The user data dir
|
2009-03-07 01:35:01 -07:00
|
|
|
#define ROOT_DIR "."
|
2010-02-02 16:21:19 -07:00
|
|
|
#ifdef _WIN32
|
|
|
|
#define USERDATA_DIR "User"
|
|
|
|
#define DOLPHIN_DATA_DIR "Dolphin"
|
2009-03-07 01:35:01 -07:00
|
|
|
#elif defined __APPLE__
|
2010-05-11 22:26:32 -06: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
|
2010-07-19 20:45:31 -06:00
|
|
|
#define USERDATA_DIR "Contents/Resources/User"
|
2010-02-02 16:21:19 -07:00
|
|
|
#define DOLPHIN_DATA_DIR "Library/Application Support/Dolphin"
|
2013-02-26 12:49:00 -07:00
|
|
|
#elif defined ANDROID
|
|
|
|
#define USERDATA_DIR "user"
|
|
|
|
#define DOLPHIN_DATA_DIR "/sdcard/dolphin-emu"
|
2010-07-19 20:45:31 -06:00
|
|
|
#else
|
2010-02-02 16:21:19 -07:00
|
|
|
#define USERDATA_DIR "user"
|
|
|
|
#ifdef USER_DIR
|
|
|
|
#define DOLPHIN_DATA_DIR USER_DIR
|
|
|
|
#else
|
|
|
|
#define DOLPHIN_DATA_DIR ".dolphin"
|
|
|
|
#endif
|
2009-03-07 01:35:01 -07:00
|
|
|
#endif
|
|
|
|
|
2010-02-02 14:56:29 -07:00
|
|
|
// Shared data dirs (Sys and shared User for linux)
|
2010-02-02 16:21:19 -07:00
|
|
|
#ifdef _WIN32
|
|
|
|
#define SYSDATA_DIR "Sys"
|
2010-02-02 14:56:29 -07:00
|
|
|
#elif defined __APPLE__
|
2010-07-19 20:45:31 -06:00
|
|
|
#define SYSDATA_DIR "Contents/Resources/Sys"
|
2013-02-26 12:49:00 -07:00
|
|
|
#elif defined ANDROID
|
2013-03-19 19:51:12 -06:00
|
|
|
#define SYSDATA_DIR "/sdcard/dolphin-emu"
|
2010-07-19 20:45:31 -06:00
|
|
|
#else
|
2010-02-02 16:21:19 -07:00
|
|
|
#ifdef DATA_DIR
|
|
|
|
#define SYSDATA_DIR DATA_DIR "sys"
|
|
|
|
#else
|
|
|
|
#define SYSDATA_DIR "sys"
|
|
|
|
#endif
|
2010-02-02 14:56:29 -07:00
|
|
|
#endif
|
|
|
|
|
2009-03-07 01:35:01 -07:00
|
|
|
// Dirs in both User and Sys
|
|
|
|
#define EUR_DIR "EUR"
|
|
|
|
#define USA_DIR "USA"
|
|
|
|
#define JAP_DIR "JAP"
|
|
|
|
|
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"
|
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"
|
2010-02-02 14:56:29 -07:00
|
|
|
#define SHADERCACHE_DIR "ShaderCache"
|
|
|
|
#define STATESAVES_DIR "StateSaves"
|
|
|
|
#define SCREENSHOTS_DIR "ScreenShots"
|
2013-08-24 23:35:32 -06:00
|
|
|
#define LOAD_DIR "Load"
|
2010-02-02 14:56:29 -07:00
|
|
|
#define HIRES_TEXTURES_DIR LOAD_DIR DIR_SEP "Textures"
|
2013-08-24 23:35:32 -06:00
|
|
|
#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"
|
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"
|
2013-08-24 23:35:32 -06:00
|
|
|
#define THEMES_DIR "Themes"
|
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"
|
|
|
|
#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"
|
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)
|
|
|
|
#define RAM_DUMP "ram.raw"
|
|
|
|
#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
|
|
|
|
|
|
|
// Sys files
|
|
|
|
#define TOTALDB "totaldb.dsy"
|
|
|
|
|
|
|
|
#define FONT_ANSI "font_ansi.bin"
|
|
|
|
#define FONT_SJIS "font_sjis.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"
|
2009-03-07 01:35:01 -07:00
|
|
|
|
2013-03-19 19:51:12 -06:00
|
|
|
#define WII_STATE "state.dat"
|
2012-04-20 22:21:13 -06:00
|
|
|
|
2013-03-19 19:51:12 -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"
|
2009-03-07 01:35:01 -07:00
|
|
|
|
2009-03-28 02:57:34 -06:00
|
|
|
#endif // _COMMON_PATHS_H_
|