2014-12-17 05:38:14 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project / 2014 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
2013-09-05 00:17:46 +00:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2014-08-17 17:45:50 +00:00
|
|
|
#pragma once
|
2013-09-05 00:17:46 +00:00
|
|
|
|
|
|
|
// Make sure we pick up USER_DIR if set in config.h
|
2014-04-09 00:15:08 +00:00
|
|
|
#include "common/common.h"
|
2013-09-05 00:17:46 +00:00
|
|
|
|
2014-09-13 00:06:13 +00:00
|
|
|
// Directory separators, do we need this?
|
2013-09-05 00:17:46 +00:00
|
|
|
#define DIR_SEP "/"
|
|
|
|
#define DIR_SEP_CHR '/'
|
|
|
|
|
2013-09-09 00:42:03 +00:00
|
|
|
#ifndef MAX_PATH
|
2014-09-13 00:06:13 +00:00
|
|
|
#define MAX_PATH 260
|
2013-09-09 00:42:03 +00:00
|
|
|
#endif
|
2013-09-08 17:17:27 +00:00
|
|
|
|
2013-09-05 00:17:46 +00:00
|
|
|
// The user data dir
|
|
|
|
#define ROOT_DIR "."
|
|
|
|
#ifdef _WIN32
|
2014-04-01 22:20:08 +00:00
|
|
|
#define USERDATA_DIR "user"
|
2014-09-13 00:06:13 +00:00
|
|
|
#define EMU_DATA_DIR "Citra Emulator"
|
2013-09-05 00:17:46 +00:00
|
|
|
#else
|
2014-04-01 22:20:08 +00:00
|
|
|
#define USERDATA_DIR "user"
|
|
|
|
#ifdef USER_DIR
|
|
|
|
#define EMU_DATA_DIR USER_DIR
|
|
|
|
#else
|
2014-09-13 00:06:13 +00:00
|
|
|
#define EMU_DATA_DIR ".citra-emu"
|
2014-04-01 22:20:08 +00:00
|
|
|
#endif
|
2013-09-05 00:17:46 +00:00
|
|
|
#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)
|
2015-01-01 02:43:31 +00:00
|
|
|
#define CONFIG_DIR "config"
|
|
|
|
#define GAMECONFIG_DIR "game_config"
|
|
|
|
#define MAPS_DIR "maps"
|
|
|
|
#define CACHE_DIR "cache"
|
|
|
|
#define SDMC_DIR "sdmc"
|
|
|
|
#define EXTSAVEDATA_DIR "sdmc/Nintendo 3DS/extdata"
|
|
|
|
#define SHAREDEXTSAVEDATA_DIR "nand/data/extdata"
|
|
|
|
#define SAVEDATA_DIR "savedata"
|
2015-01-04 00:01:46 +00:00
|
|
|
#define SAVEDATACHECK_DIR "nand/title"
|
2015-01-01 02:43:31 +00:00
|
|
|
#define SYSDATA_DIR "sysdata"
|
|
|
|
#define SYSSAVEDATA_DIR "nand/data/sysdata"
|
|
|
|
#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 00:17:46 +00:00
|
|
|
|
|
|
|
// Filenames
|
|
|
|
// Files in the directory returned by GetUserPath(D_CONFIG_IDX)
|
2014-04-01 22:20:08 +00:00
|
|
|
#define EMU_CONFIG "emu.ini"
|
2014-09-13 00:06:13 +00:00
|
|
|
#define DEBUGGER_CONFIG "debugger.ini"
|
|
|
|
#define LOGGER_CONFIG "logger.ini"
|
2013-09-05 00:17:46 +00:00
|
|
|
|
2014-11-26 20:00:51 +00:00
|
|
|
// Sys files
|
|
|
|
#define SHARED_FONT "shared_font.bin"
|
|
|
|
|
2013-09-05 00:17:46 +00:00
|
|
|
// Files in the directory returned by GetUserPath(D_LOGS_IDX)
|
2014-09-13 00:06:13 +00:00
|
|
|
#define MAIN_LOG "emu.log"
|
2013-09-09 00:42:03 +00:00
|
|
|
|
|
|
|
// Files in the directory returned by GetUserPath(D_SYSCONF_IDX)
|
2014-09-13 00:06:13 +00:00
|
|
|
#define SYSCONF "SYSCONF"
|