mirror of
https://github.com/astronautlevel2/Anemone3DS.git
synced 2026-01-24 00:32:43 -05:00
Throw error on failed parental validation.
Also use CFGU instead of CFG for reading restrictions
This commit is contained in:
@@ -116,7 +116,7 @@ Result load_parental_controls(Parental_Restrictions_s *restrictions)
|
||||
char parental_data[0xC0] = {0};
|
||||
Result res;
|
||||
|
||||
if (R_FAILED(res = CFG_GetConfigInfoBlk8(0xC0, 0x000C0000, &parental_data))) return res;
|
||||
if (R_FAILED(res = CFGU_GetConfigInfoBlk2(0xC0, 0x000C0000, &parental_data))) return res;
|
||||
memcpy(restrictions, parental_data, 4);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user