mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-27 13:14:15 -04:00
fs.mitm: experimental support for save redirection to sd.
This commit is contained in:
parent
fb5e02050b
commit
938169cd3c
15 changed files with 434 additions and 66 deletions
|
@ -640,3 +640,15 @@ Result Utils::GetSettingsItemValueSize(const char *name, const char *key, u64 *o
|
|||
Result Utils::GetSettingsItemValue(const char *name, const char *key, void *out, size_t max_size, u64 *out_size) {
|
||||
return SettingsItemManager::GetValue(name, key, out, max_size, out_size);
|
||||
}
|
||||
|
||||
Result Utils::GetSettingsItemBooleanValue(const char *name, const char *key, bool *out) {
|
||||
u8 val = 0;
|
||||
u64 out_size;
|
||||
Result rc = Utils::GetSettingsItemValue(name, key, &val, sizeof(val), &out_size);
|
||||
if (R_SUCCEEDED(rc)) {
|
||||
if (out) {
|
||||
*out = val != 0;
|
||||
}
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue