From 94b3c63bf9a67756213baaa4975dece4f04a196f Mon Sep 17 00:00:00 2001 From: khang06 Date: Tue, 2 Apr 2019 21:29:36 -0400 Subject: [PATCH] add dump dir to user paths --- src/common/common_paths.h | 1 + src/common/file_util.cpp | 1 + src/common/file_util.h | 1 + 3 files changed, 3 insertions(+) diff --git a/src/common/common_paths.h b/src/common/common_paths.h index c5d6ac67bc..b302c2b252 100644 --- a/src/common/common_paths.h +++ b/src/common/common_paths.h @@ -44,6 +44,7 @@ #define CHEATS_DIR "cheats" #define DLL_DIR "external_dlls" #define SHADER_DIR "shaders" +#define DUMP_DIR "dump" // Filenames // Files in the directory returned by GetUserPath(UserPath::LogDir) diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 0e9a9637c8..1f7360fa62 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -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::DLLDir, user_path + DLL_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) { diff --git a/src/common/file_util.h b/src/common/file_util.h index 28e6a42d40..62c9f36a93 100644 --- a/src/common/file_util.h +++ b/src/common/file_util.h @@ -26,6 +26,7 @@ enum class UserPath { CheatsDir, ConfigDir, DLLDir, + DumpDir, LogDir, NANDDir, RootDir,