// // SecretLayer2::showCompletedLevel from 0x4ea010 to 0x4ea45e (1102 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void SecretLayer2::showCompletedLevel(SecretLayer2 *a1) { cocos2d::CCArray *v2; // r6 cocos2d::CCObject *v3; // r0 cocos2d::CCObject *v4; // r0 cocos2d::CCObject *v5; // r0 cocos2d::CCObject *v6; // r0 cocos2d::CCObject *v7; // r0 cocos2d::CCObject *v8; // r0 cocos2d::CCObject *v9; // r0 cocos2d::CCObject *v10; // r0 cocos2d::CCObject *v11; // r0 cocos2d::CCObject *v12; // r0 cocos2d::CCObject *v13; // r0 cocos2d::CCObject *v14; // r0 DialogLayer *v15; // r0 DialogLayer *v16; // r4 int v17; // [sp+4h] [bp-1Ch] int v18; // [sp+4h] [bp-1Ch] int v19; // [sp+4h] [bp-1Ch] int v20; // [sp+4h] [bp-1Ch] int v21; // [sp+4h] [bp-1Ch] int v22; // [sp+4h] [bp-1Ch] int v23; // [sp+4h] [bp-1Ch] int v24; // [sp+4h] [bp-1Ch] int v25; // [sp+4h] [bp-1Ch] int v26; // [sp+4h] [bp-1Ch] int v27; // [sp+4h] [bp-1Ch] int v28; // [sp+4h] [bp-1Ch] char v29; // [sp+14h] [bp-Ch] BYREF _BYTE v30[4]; // [sp+18h] [bp-8h] BYREF v2 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1); sub_776584((int)&v29, "The Keymaster"); sub_776584((int)v30, "Huh!?"); LOWORD(v17) = -1; BYTE2(v17) = -1; v3 = (cocos2d::CCObject *)DialogObject::create( (DialogObject *)&v29, (std::string)v30, (std::string)2, 1065353216, COERCE_FLOAT(1), v17); cocos2d::CCArray::addObject(v2, v3); sub_774008(v30); sub_774008(&v29); sub_776584((int)&v29, "The Keymaster"); sub_776584((int)v30, "My level... You beat it?"); LOWORD(v18) = -1; BYTE2(v18) = -1; v4 = (cocos2d::CCObject *)DialogObject::create( (DialogObject *)&v29, (std::string)v30, (std::string)2, 1065353216, 0.0, v18); cocos2d::CCArray::addObject(v2, v4); sub_774008(v30); sub_774008(&v29); sub_776584((int)&v29, "The Keymaster"); sub_776584((int)v30, "I guess I underestimated you.\nIt will not happen again."); LOWORD(v19) = -1; BYTE2(v19) = -1; v5 = (cocos2d::CCObject *)DialogObject::create( (DialogObject *)&v29, (std::string)v30, (std::string)2, 1065353216, 0.0, v19); cocos2d::CCArray::addObject(v2, v5); sub_774008(v30); sub_774008(&v29); sub_776584((int)&v29, "The Keymaster"); sub_776584((int)v30, "... Why are you still here?"); LOWORD(v20) = -1; BYTE2(v20) = -1; v6 = (cocos2d::CCObject *)DialogObject::create( (DialogObject *)&v29, (std::string)v30, (std::string)2, 1065353216, 0.0, v20); cocos2d::CCArray::addObject(v2, v6); sub_774008(v30); sub_774008(&v29); sub_776584((int)&v29, "The Keymaster"); sub_776584((int)v30, "Ah of course, you want a prize."); LOWORD(v21) = -1; BYTE2(v21) = -1; v7 = (cocos2d::CCObject *)DialogObject::create( (DialogObject *)&v29, (std::string)v30, (std::string)2, 1065353216, 0.0, v21); cocos2d::CCArray::addObject(v2, v7); sub_774008(v30); sub_774008(&v29); sub_776584((int)&v29, "The Keymaster"); sub_776584((int)v30, "RubRub always gives prizes."); LOWORD(v22) = -1; BYTE2(v22) = -1; v8 = (cocos2d::CCObject *)DialogObject::create( (DialogObject *)&v29, (std::string)v30, (std::string)2, 1065353216, 0.0, v22); cocos2d::CCArray::addObject(v2, v8); sub_774008(v30); sub_774008(&v29); sub_776584((int)&v29, "The Keymaster"); sub_776584((int)v30, "Uhm... Not sure what to..."); LOWORD(v23) = -1; BYTE2(v23) = -1; v9 = (cocos2d::CCObject *)DialogObject::create( (DialogObject *)&v29, (std::string)v30, (std::string)2, 1065353216, 0.0, v23); cocos2d::CCArray::addObject(v2, v9); sub_774008(v30); sub_774008(&v29); sub_776584((int)&v29, "The Keymaster"); sub_776584((int)v30, "Oh I know!"); LOWORD(v24) = -1; BYTE2(v24) = -1; v10 = (cocos2d::CCObject *)DialogObject::create( (DialogObject *)&v29, (std::string)v30, (std::string)2, 1065353216, 0.0, v24); cocos2d::CCArray::addObject(v2, v10); sub_774008(v30); sub_774008(&v29); sub_776584((int)&v29, "The Keymaster"); sub_776584((int)v30, "I left an old chest down in the basement."); LOWORD(v25) = -1; BYTE2(v25) = -1; v11 = (cocos2d::CCObject *)DialogObject::create( (DialogObject *)&v29, (std::string)v30, (std::string)2, 1065353216, 0.0, v25); cocos2d::CCArray::addObject(v2, v11); sub_774008(v30); sub_774008(&v29); sub_776584((int)&v29, "The Keymaster"); sub_776584((int)v30, "You can have that as a reward!"); LOWORD(v26) = -1; BYTE2(v26) = -1; v12 = (cocos2d::CCObject *)DialogObject::create( (DialogObject *)&v29, (std::string)v30, (std::string)2, 1065353216, 0.0, v26); cocos2d::CCArray::addObject(v2, v12); sub_774008(v30); sub_774008(&v29); sub_776584((int)&v29, "The Keymaster"); sub_776584((int)v30, "Take the door on the right, I will open it for you."); LOWORD(v27) = -1; BYTE2(v27) = -1; v13 = (cocos2d::CCObject *)DialogObject::create( (DialogObject *)&v29, (std::string)v30, (std::string)2, 1065353216, 0.0, v27); cocos2d::CCArray::addObject(v2, v13); sub_774008(v30); sub_774008(&v29); sub_776584((int)&v29, "The Keymaster"); sub_776584( (int)v30, "Grab the chest and come back...\n" "DONT TOUCH ANYTHING!"); LOWORD(v28) = -1; BYTE2(v28) = -1; v14 = (cocos2d::CCObject *)DialogObject::create( (DialogObject *)&v29, (std::string)v30, (std::string)2, 1065353216, 0.0, v28); cocos2d::CCArray::addObject(v2, v14); sub_774008(v30); sub_774008(&v29); v15 = DialogLayer::createWithObjects(v2, (int)&dword_0 + 2); v15->m_delegate = &a1->DialogDelegate; v16 = v15; a1->addChild_0(a1, v15, 100); DialogLayer::updateChatPlacement(v16, Center); DialogLayer::animateIn(v16, FromLeft); }
GD Web Decomp Icon

GD Web Decomp

Raw Source