add dump dir to user paths

This commit is contained in:
khang06 2019-04-02 21:29:36 -04:00 committed by James Rowe
parent e0d63bd21b
commit 94b3c63bf9
3 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,7 @@
#define CHEATS_DIR "cheats" #define CHEATS_DIR "cheats"
#define DLL_DIR "external_dlls" #define DLL_DIR "external_dlls"
#define SHADER_DIR "shaders" #define SHADER_DIR "shaders"
#define DUMP_DIR "dump"
// Filenames // Filenames
// Files in the directory returned by GetUserPath(UserPath::LogDir) // Files in the directory returned by GetUserPath(UserPath::LogDir)

View File

@ -712,6 +712,7 @@ void SetUserPath(const std::string& path) {
g_paths.emplace(UserPath::CheatsDir, user_path + CHEATS_DIR DIR_SEP); g_paths.emplace(UserPath::CheatsDir, user_path + CHEATS_DIR DIR_SEP);
g_paths.emplace(UserPath::DLLDir, user_path + DLL_DIR DIR_SEP); g_paths.emplace(UserPath::DLLDir, user_path + DLL_DIR DIR_SEP);
g_paths.emplace(UserPath::ShaderDir, user_path + SHADER_DIR DIR_SEP); g_paths.emplace(UserPath::ShaderDir, user_path + SHADER_DIR DIR_SEP);
g_paths.emplace(UserPath::DumpDir, user_path + DUMP_DIR DIR_SEP);
} }
const std::string& GetUserPath(UserPath path) { const std::string& GetUserPath(UserPath path) {

View File

@ -26,6 +26,7 @@ enum class UserPath {
CheatsDir, CheatsDir,
ConfigDir, ConfigDir,
DLLDir, DLLDir,
DumpDir,
LogDir, LogDir,
NANDDir, NANDDir,
RootDir, RootDir,