summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-07-30 00:42:04 +0200
committerZach Hilman <zachhilman@gmail.com>2018-08-01 06:16:54 +0200
commit150527ec194107f0ba5ea9bdef487782e64090ef (patch)
treebf6a2589e1a05eb4546ef74715050d8f986c8e78 /src/common
parentUse SHGetKnownFolderPath instead of SHGetFolderPathA (diff)
downloadyuzu-150527ec194107f0ba5ea9bdef487782e64090ef.tar
yuzu-150527ec194107f0ba5ea9bdef487782e64090ef.tar.gz
yuzu-150527ec194107f0ba5ea9bdef487782e64090ef.tar.bz2
yuzu-150527ec194107f0ba5ea9bdef487782e64090ef.tar.lz
yuzu-150527ec194107f0ba5ea9bdef487782e64090ef.tar.xz
yuzu-150527ec194107f0ba5ea9bdef487782e64090ef.tar.zst
yuzu-150527ec194107f0ba5ea9bdef487782e64090ef.zip
Diffstat (limited to '')
-rw-r--r--src/common/common_paths.h1
-rw-r--r--src/common/file_util.cpp1
-rw-r--r--src/common/file_util.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/common/common_paths.h b/src/common/common_paths.h
index 6799a357a..df2ce80b1 100644
--- a/src/common/common_paths.h
+++ b/src/common/common_paths.h
@@ -32,6 +32,7 @@
#define SDMC_DIR "sdmc"
#define NAND_DIR "nand"
#define SYSDATA_DIR "sysdata"
+#define KEYS_DIR "keys"
#define LOG_DIR "log"
// Filenames
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index ed38c3ced..7aeda737f 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -706,6 +706,7 @@ const std::string& GetUserPath(UserPath path, const std::string& new_path) {
paths.emplace(UserPath::SDMCDir, user_path + SDMC_DIR DIR_SEP);
paths.emplace(UserPath::NANDDir, user_path + NAND_DIR DIR_SEP);
paths.emplace(UserPath::SysDataDir, user_path + SYSDATA_DIR DIR_SEP);
+ paths.emplace(UserPath::KeysDir, user_path + KEYS_DIR DIR_SEP);
// TODO: Put the logs in a better location for each OS
paths.emplace(UserPath::LogDir, user_path + LOG_DIR DIR_SEP);
}
diff --git a/src/common/file_util.h b/src/common/file_util.h
index d530d86c9..28697d527 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -23,6 +23,7 @@ namespace FileUtil {
enum class UserPath {
CacheDir,
ConfigDir,
+ KeysDir,
LogDir,
NANDDir,
RootDir,