diff options
| author | 2018-08-15 23:11:58 -0400 | |
|---|---|---|
| committer | 2018-08-15 23:11:58 -0400 | |
| commit | c594ec341768a54dc2577c64fd15a6c0041456cd (patch) | |
| tree | 3814f831fd8207598c342341e56997a0b3123cd0 /src/common/file_util.cpp | |
| parent | Merge pull request #1078 from lioncash/message (diff) | |
| parent | registration: Various style and documentation improvements (diff) | |
| download | yuzu-c594ec341768a54dc2577c64fd15a6c0041456cd.tar.gz yuzu-c594ec341768a54dc2577c64fd15a6c0041456cd.tar.xz yuzu-c594ec341768a54dc2577c64fd15a6c0041456cd.zip | |
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 3ce590062..b30a67ff9 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp | |||
| @@ -750,6 +750,12 @@ std::string GetHactoolConfigurationPath() { | |||
| 750 | #endif | 750 | #endif |
| 751 | } | 751 | } |
| 752 | 752 | ||
| 753 | std::string GetNANDRegistrationDir(bool system) { | ||
| 754 | if (system) | ||
| 755 | return GetUserPath(UserPath::NANDDir) + "system/Contents/registered/"; | ||
| 756 | return GetUserPath(UserPath::NANDDir) + "user/Contents/registered/"; | ||
| 757 | } | ||
| 758 | |||
| 753 | size_t WriteStringToFile(bool text_file, const std::string& str, const char* filename) { | 759 | size_t WriteStringToFile(bool text_file, const std::string& str, const char* filename) { |
| 754 | return FileUtil::IOFile(filename, text_file ? "w" : "wb").WriteBytes(str.data(), str.size()); | 760 | return FileUtil::IOFile(filename, text_file ? "w" : "wb").WriteBytes(str.data(), str.size()); |
| 755 | } | 761 | } |