Is there a way to check if Parental Settings are enabled from Lua? #50
DerfJagged
started this conversation in
General
Replies: 1 comment 6 replies
-
|
I cannot guarantee that this will work for all dashboards, but it seems to be working for me on 17559. function ispcset()
-- Required Script Permissions:
-- filesystem
-- Params:
-- None
-- Returns:
-- true - if PC is set
-- false - if PC is not set
-- nil - if there was an issue loading the data containing PC information
local data=io.open("System:\\MobileB.dat", "rb"):read(67)
if data ~= nil then
return (string.byte(string.sub(data, 66, 67)) & 0x80) >> 7 == 1
end
return nil
endLet me know how if you run into any issues |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Since parental settings interfere with being able to run games in back compat, it'd be nice to be able to detect it and warn the user in Xefu Spoofer so that they aren't blaming the script or their plugins.
Beta Was this translation helpful? Give feedback.
All reactions