diff options
Diffstat (limited to 'src/common/file_util.h')
| -rw-r--r-- | src/common/file_util.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h index 1f38b1560..ff01bf0ff 100644 --- a/src/common/file_util.h +++ b/src/common/file_util.h | |||
| @@ -16,21 +16,20 @@ | |||
| 16 | #include "common/string_util.h" | 16 | #include "common/string_util.h" |
| 17 | #endif | 17 | #endif |
| 18 | 18 | ||
| 19 | // User directory indices for GetUserPath | ||
| 20 | enum { | ||
| 21 | D_USER_IDX, | ||
| 22 | D_ROOT_IDX, | ||
| 23 | D_CONFIG_IDX, | ||
| 24 | D_CACHE_IDX, | ||
| 25 | D_SDMC_IDX, | ||
| 26 | D_NAND_IDX, | ||
| 27 | D_SYSDATA_IDX, | ||
| 28 | D_LOGS_IDX, | ||
| 29 | NUM_PATH_INDICES | ||
| 30 | }; | ||
| 31 | |||
| 32 | namespace FileUtil { | 19 | namespace FileUtil { |
| 33 | 20 | ||
| 21 | // User paths for GetUserPath | ||
| 22 | enum class UserPath { | ||
| 23 | CacheDir, | ||
| 24 | ConfigDir, | ||
| 25 | LogDir, | ||
| 26 | NANDDir, | ||
| 27 | RootDir, | ||
| 28 | SDMCDir, | ||
| 29 | SysDataDir, | ||
| 30 | UserDir, | ||
| 31 | }; | ||
| 32 | |||
| 34 | // FileSystem tree node/ | 33 | // FileSystem tree node/ |
| 35 | struct FSTEntry { | 34 | struct FSTEntry { |
| 36 | bool isDirectory; | 35 | bool isDirectory; |
| @@ -123,7 +122,7 @@ bool SetCurrentDir(const std::string& directory); | |||
| 123 | 122 | ||
| 124 | // Returns a pointer to a string with a yuzu data dir in the user's home | 123 | // Returns a pointer to a string with a yuzu data dir in the user's home |
| 125 | // directory. To be used in "multi-user" mode (that is, installed). | 124 | // directory. To be used in "multi-user" mode (that is, installed). |
| 126 | const std::string& GetUserPath(const unsigned int DirIDX, const std::string& newPath = ""); | 125 | const std::string& GetUserPath(UserPath path, const std::string& new_path = ""); |
| 127 | 126 | ||
| 128 | // Returns the path to where the sys file are | 127 | // Returns the path to where the sys file are |
| 129 | std::string GetSysDirectory(); | 128 | std::string GetSysDirectory(); |