2013-09-05 05:47:46 +05:30
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#ifndef _COMMON_PATHS_H_
|
|
|
|
#define _COMMON_PATHS_H_
|
|
|
|
|
|
|
|
// Make sure we pick up USER_DIR if set in config.h
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
// Directory seperators, do we need this?
|
|
|
|
#define DIR_SEP "/"
|
|
|
|
#define DIR_SEP_CHR '/'
|
|
|
|
|
2013-09-09 06:12:03 +05:30
|
|
|
#ifndef MAX_PATH
|
2014-04-02 03:50:08 +05:30
|
|
|
#define MAX_PATH 260
|
2013-09-09 06:12:03 +05:30
|
|
|
#endif
|
2013-09-08 22:47:27 +05:30
|
|
|
|
2013-09-05 05:47:46 +05:30
|
|
|
// The user data dir
|
|
|
|
#define ROOT_DIR "."
|
|
|
|
#ifdef _WIN32
|
2014-04-02 03:50:08 +05:30
|
|
|
#define USERDATA_DIR "user"
|
|
|
|
#define EMU_DATA_DIR "emu"
|
2013-09-05 05:47:46 +05:30
|
|
|
#else
|
2014-04-02 03:50:08 +05:30
|
|
|
#define USERDATA_DIR "user"
|
|
|
|
#ifdef USER_DIR
|
|
|
|
#define EMU_DATA_DIR USER_DIR
|
|
|
|
#else
|
|
|
|
#define EMU_DATA_DIR ".emu"
|
|
|
|
#endif
|
2013-09-05 05:47:46 +05:30
|
|
|
#endif
|
|
|
|
|
|
|
|
// Shared data dirs (Sys and shared User for linux)
|
|
|
|
#ifdef _WIN32
|
2014-04-02 03:50:08 +05:30
|
|
|
#define SYSDATA_DIR "sys"
|
2013-09-05 05:47:46 +05:30
|
|
|
#else
|
2014-04-02 03:50:08 +05:30
|
|
|
#ifdef DATA_DIR
|
|
|
|
#define SYSDATA_DIR DATA_DIR "sys"
|
|
|
|
#define SHARED_USER_DIR DATA_DIR USERDATA_DIR DIR_SEP
|
|
|
|
#else
|
|
|
|
#define SYSDATA_DIR "sys"
|
|
|
|
#define SHARED_USER_DIR ROOT_DIR DIR_SEP USERDATA_DIR DIR_SEP
|
|
|
|
#endif
|
2013-09-05 05:47:46 +05:30
|
|
|
#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)
|
2014-04-02 03:50:08 +05:30
|
|
|
#define CONFIG_DIR "config"
|
|
|
|
#define GAMECONFIG_DIR "game_config"
|
|
|
|
#define MAPS_DIR "maps"
|
|
|
|
#define CACHE_DIR "cache"
|
|
|
|
#define SHADERCACHE_DIR "shader_cache"
|
|
|
|
#define STATESAVES_DIR "state_saves"
|
|
|
|
#define SCREENSHOTS_DIR "screenShots"
|
|
|
|
#define DUMP_DIR "dump"
|
|
|
|
#define DUMP_TEXTURES_DIR "textures"
|
|
|
|
#define DUMP_FRAMES_DIR "frames"
|
|
|
|
#define DUMP_AUDIO_DIR "audio"
|
|
|
|
#define LOGS_DIR "logs"
|
|
|
|
#define SHADERS_DIR "shaders"
|
|
|
|
#define SYSCONF_DIR "sysconf"
|
2013-09-05 05:47:46 +05:30
|
|
|
|
|
|
|
// Filenames
|
|
|
|
// Files in the directory returned by GetUserPath(D_CONFIG_IDX)
|
2014-04-02 03:50:08 +05:30
|
|
|
#define EMU_CONFIG "emu.ini"
|
|
|
|
#define DEBUGGER_CONFIG "debugger.ini"
|
|
|
|
#define LOGGER_CONFIG "logger.ini"
|
2013-09-05 05:47:46 +05:30
|
|
|
|
|
|
|
// Files in the directory returned by GetUserPath(D_LOGS_IDX)
|
2014-04-02 03:50:08 +05:30
|
|
|
#define MAIN_LOG "emu.log"
|
2013-09-09 06:12:03 +05:30
|
|
|
|
|
|
|
// Files in the directory returned by GetUserPath(D_SYSCONF_IDX)
|
2014-04-02 03:50:08 +05:30
|
|
|
#define SYSCONF "SYSCONF"
|
2013-09-05 05:47:46 +05:30
|
|
|
|
|
|
|
#endif // _COMMON_PATHS_H_
|