mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-22 10:55:14 -04:00
ams_mitm: Implement system settings mitm
This commit is contained in:
parent
55610694c8
commit
c10ba67973
25 changed files with 655 additions and 30 deletions
|
@ -315,15 +315,14 @@ namespace ams::ro::impl {
|
|||
|
||||
bool ShouldEaseNroRestriction() {
|
||||
/* Retrieve whether we should ease restrictions from set:sys. */
|
||||
bool should_ease = false;
|
||||
u64 size_out;
|
||||
if (R_FAILED(setsysGetSettingsItemValue("ro", "ease_nro_restriction", &should_ease, sizeof(should_ease), &size_out))) {
|
||||
u8 should_ease = 0;
|
||||
if (settings::fwdbg::GetSettingsItemValue(&should_ease, sizeof(should_ease), "ro", "ease_nro_restriction") != sizeof(should_ease)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Nintendo only allows easing restriction on dev, we will allow on production, as well. */
|
||||
/* should_ease &= IsDevelopmentFunctionEnabled(); */
|
||||
return should_ease;
|
||||
return should_ease != 0;
|
||||
}
|
||||
|
||||
/* Context utilities. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue