mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-11 17:52:58 +01:00
file_util: Add getter for NAND registration directory
This commit is contained in:
1 parent
7193c994b7
commit
54ef430e85
2 files changed
+8
No files matched your search
@@ -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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user