diff --git a/include/scene/setting/iplParental.h b/include/scene/setting/iplParental.h index 46277779..2a7c9d82 100644 --- a/include/scene/setting/iplParental.h +++ b/include/scene/setting/iplParental.h @@ -50,6 +50,7 @@ namespace ipl { static void makeMasterkey(); static char* getRequestNum(); + static void dump(); private: static void _initRating(); diff --git a/src/scene/setting/iplParental.cpp b/src/scene/setting/iplParental.cpp index e7d55bb5..a6c832a5 100644 --- a/src/scene/setting/iplParental.cpp +++ b/src/scene/setting/iplParental.cpp @@ -324,16 +324,18 @@ namespace ipl { return mRequestNum; } - DECOMP_FORCE_ACTIVE(iplParental_cpp, "flags:%d\n"); - DECOMP_FORCE_ACTIVE(iplParental_cpp, "rating:%d\n"); - DECOMP_FORCE_ACTIVE(iplParental_cpp, "password:%s\n"); - DECOMP_FORCE_ACTIVE(iplParental_cpp, "secretQuestion:%d\n"); - DECOMP_FORCE_ACTIVE(iplParental_cpp, "secretAnswer:%s\n"); - DECOMP_FORCE_ACTIVE(iplParental_cpp, "secretAnswerLength:%d\n"); - DECOMP_FORCE_ACTIVE(iplParental_cpp, "net contents restrictions:%02x\n"); - DECOMP_FORCE_ACTIVE(iplParental_cpp, "www channel restriction :%d\n"); - DECOMP_FORCE_ACTIVE(iplParental_cpp, "requestNum:%s\n"); - DECOMP_FORCE_ACTIVE(iplParental_cpp, "masterkey:%s\n"); - DECOMP_FORCE_ACTIVE(iplParental_cpp, "country: %d\n"); + void Parental::dump() { + OSReport("flags:%d\n", m_sc.info.enable); + OSReport("rating:%d\n", m_sc.info.rating); + OSReport("password:%s\n", m_sc.info.password); + OSReport("secretQuestion:%d\n", m_sc.info.secretQuestion); + OSReport("secretAnswer:%s\n", m_sc.info.secretAnswer); + OSReport("secretAnswerLength:%d\n", m_sc.info.secretAnswerLength); + OSReport("net contents restrictions:%02x\n", SCGetNetContentRestrictions()); + OSReport("www channel restriction :%d\n", m_sc.wwwRestrict); + OSReport("requestNum:%s\n", mRequestNum); + OSReport("masterkey:%s\n", mMasterKey); + OSReport("country: %d\n", getCountry()); + } } // namespace parental } // namespace ipl diff --git a/tools/decomp-assist/grok-parental.attempts.md b/tools/decomp-assist/grok-parental.attempts.md new file mode 100644 index 00000000..9c925e82 --- /dev/null +++ b/tools/decomp-assist/grok-parental.attempts.md @@ -0,0 +1,11 @@ +# grok-parental Parental::dump + +Replaced the eleven DECOMP_FORCE_ACTIVE strings with Parental::dump. +The function is not in the target object (linker stripped it). Strings stay in source order. + +Attempt 1: print enable, rating, password, secret question/answer/length, SCGetNetContentRestrictions, wwwRestrict, mRequestNum, mMasterKey, getCountry. +- pool: IDENTICAL 17/17 +- .data sha1 e3b3aaf3411decf3cd524b01cc437f434417dda1 matches the force-active build (332 bytes) +- .sdata identical to that build +- odiff: 30 functions differing 0 +- gate: PASS. DOL 26116613f624061ba99c8d1a299aaa6efa85670d. data 1576/1576. functions 30/30. regressions 0.