refactor(parental): write the stripped settings dump instead of forcing its strings (grok-parental) #1244
@@ -50,6 +50,7 @@ namespace ipl {
|
||||
static void makeMasterkey();
|
||||
|
||||
static char* getRequestNum();
|
||||
static void dump();
|
||||
|
||||
private:
|
||||
static void _initRating();
|
||||
|
||||
@@ -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
|
||||
|
||||
11
tools/decomp-assist/grok-parental.attempts.md
Normal file
11
tools/decomp-assist/grok-parental.attempts.md
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user