diff options
| author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-12-23 12:42:40 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-23 12:42:40 -0800 |
| commit | dc07e6c89af2c6d89a90f16ab38313e7d2c0bbe1 (patch) | |
| tree | 1eb162e17f3c0126a849ef101cfb2d45594390b9 /src/common/file_util.cpp | |
| parent | 35c2714859c6c03e8794f12fb168a3cac4259f36 (diff) | |
| parent | 2c0bde2fb726a709aeacb177e721b74d18d93fda (diff) | |
Merge pull request #2370 from wwylele/where-is-my-shared-font
file_util: fix missing sysdata path
Diffstat (limited to 'src/common/file_util.cpp')
| -rw-r--r-- | src/common/file_util.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 5ab938a24b..1a1f5d9b53 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -697,9 +697,6 @@ const std::string& GetUserPath(const unsigned int DirIDX, const std::string& new paths[D_CONFIG_IDX] = paths[D_USER_IDX] + CONFIG_DIR DIR_SEP; paths[D_CACHE_IDX] = paths[D_USER_IDX] + CACHE_DIR DIR_SEP; - paths[D_SDMC_IDX] = paths[D_USER_IDX] + SDMC_DIR DIR_SEP; - paths[D_NAND_IDX] = paths[D_USER_IDX] + NAND_DIR DIR_SEP; - paths[D_SYSDATA_IDX] = paths[D_USER_IDX] + SYSDATA_DIR DIR_SEP; #else if (FileUtil::Exists(ROOT_DIR DIR_SEP USERDATA_DIR)) { paths[D_USER_IDX] = ROOT_DIR DIR_SEP USERDATA_DIR DIR_SEP; @@ -717,6 +714,7 @@ const std::string& GetUserPath(const unsigned int DirIDX, const std::string& new #endif paths[D_SDMC_IDX] = paths[D_USER_IDX] + SDMC_DIR DIR_SEP; paths[D_NAND_IDX] = paths[D_USER_IDX] + NAND_DIR DIR_SEP; + paths[D_SYSDATA_IDX] = paths[D_USER_IDX] + SYSDATA_DIR DIR_SEP; } if (!newPath.empty()) { |
