Created
November 24, 2018 22:09
-
-
Save leoetlino/8a053a705f0f50d4d9e67e80331b44b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bool __cdecl AmiiboMgr::isMotorcycleAllowed(AmiiboMgr *this) | |
| { | |
| GameDataMgr *v1; // x21 | |
| BOOL v3; // w20 | |
| sead::SafeString v5; // [xsp+0h] [xbp-40h] | |
| bool a2; // [xsp+1Ch] [xbp-24h] | |
| v1 = GameDataMgr::sInstance; | |
| if ( !GameDataMgr::sInstance ) | |
| goto LABEL_10; | |
| a2 = 0; | |
| v5.vptr = &sead::SafeString::vt; | |
| v5.cstr = "IsPlayed_Demo146_0"; | |
| LOBYTE(v3) = 1; | |
| TriggerParam::getBoolByKey_0(*GameDataMgr::sInstance->param.param, &a2, &v5, GameDataMgr::sInstance->param.x); | |
| if ( a2 ) | |
| return v3; | |
| v5.vptr = &sead::SafeString::vt; | |
| v5.cstr = "IsPlayed_Demo142_0"; | |
| TriggerParam::getBoolByKey_0(*v1->param.param, &a2, &v5, v1->param.x); | |
| if ( a2 ) | |
| goto LABEL_14; | |
| v5.vptr = &sead::SafeString::vt; | |
| v5.cstr = "IsPlayed_Demo141_0"; | |
| TriggerParam::getBoolByKey_0(*v1->param.param, &a2, &v5, v1->param.x); | |
| if ( a2 ) | |
| goto LABEL_14; | |
| v5.vptr = &sead::SafeString::vt; | |
| v5.cstr = "IsPlayed_Demo141_1"; | |
| TriggerParam::getBoolByKey_0(*v1->param.param, &a2, &v5, v1->param.x); | |
| if ( a2 | |
| || (v5.vptr = &sead::SafeString::vt, | |
| v5.cstr = "IsPlayed_Demo141_2", | |
| TriggerParam::getBoolByKey_0(*v1->param.param, &a2, &v5, v1->param.x), | |
| a2) | |
| || (v5.vptr = &sead::SafeString::vt, | |
| v5.cstr = "IsPlayed_Demo141_3", | |
| TriggerParam::getBoolByKey_0(*v1->param.param, &a2, &v5, v1->param.x), | |
| a2) ) | |
| { | |
| LABEL_14: | |
| LOBYTE(v3) = 0; | |
| return v3; | |
| } | |
| v5.vptr = &sead::SafeString::vt; | |
| v5.cstr = "NakedIsland_ProhibitAmiibo"; | |
| LOBYTE(v3) = 1; | |
| TriggerParam::getBoolByKey_0(*v1->param.param, &a2, &v5, v1->param.x); | |
| if ( a2 ) | |
| return v3; | |
| LABEL_10: | |
| v3 = ((unsigned int)(unsigned __int8)this->flags >> 6) & 1; | |
| return v3; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment