diff options
| author | bunnei <bunneidev@gmail.com> | 2018-08-15 23:11:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-15 23:11:58 -0400 |
| commit | 960f4ecce2a2ff452fe911d8973e4830b3a6af0a (patch) | |
| tree | 3814f831fd8207598c342341e56997a0b3123cd0 /src/common/file_util.cpp | |
| parent | d08f54b77dece80938d5774e31cf87373d6da6de (diff) | |
| parent | 3781654c6d5f0932351f020b884ac6ff32cbc7e9 (diff) | |
Merge pull request #1005 from DarkLordZach/registered-fmt
file_sys: Add support for registration format
Diffstat (limited to 'src/common/file_util.cpp')
| -rw-r--r-- | src/common/file_util.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 3ce590062a..b30a67ff99 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -750,6 +750,12 @@ std::string GetHactoolConfigurationPath() { #endif } +std::string GetNANDRegistrationDir(bool system) { + if (system) + return GetUserPath(UserPath::NANDDir) + "system/Contents/registered/"; + return GetUserPath(UserPath::NANDDir) + "user/Contents/registered/"; +} + size_t WriteStringToFile(bool text_file, const std::string& str, const char* filename) { return FileUtil::IOFile(filename, text_file ? "w" : "wb").WriteBytes(str.data(), str.size()); } |
