// // LevelAreaLayer::showDialog from 0x56b574 to 0x56b6a8 (308 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 LevelAreaLayer::showDialog(LevelAreaLayer *a1) { GameManager *v2; // r0 cocos2d::CCArray *v3; // r0 cocos2d::CCArray *v4; // r9 cocos2d::CCObject *v5; // r0 cocos2d::CCObject *v6; // r0 DialogLayer *v7; // r0 DialogLayer *v8; // r4 cocos2d::CCDirector *v9; // r0 int v10; // [sp+4h] [bp-8h] int v11; // [sp+4h] [bp-8h] char v12; // [sp+14h] [bp+8h] BYREF _BYTE v13[4]; // [sp+18h] [bp+Ch] BYREF v2 = GameManager::sharedState(); GameManager::setUGV(v2, "29", 1); v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3); sub_776584((int)&v12, "Scratch"); sub_776584((int)v13, "Who left the lights on?"); LOWORD(v10) = -1; BYTE2(v10) = -1; v5 = (cocos2d::CCObject *)DialogObject::create( (DialogObject *)&v12, (std::string)v13, (std::string)13, 1065353216, 0.0, v10); cocos2d::CCArray::addObject(v4, v5); sub_774008(v13); sub_774008(&v12); sub_776584((int)&v12, "Scratch"); sub_776584((int)v13, "I got a bad feeling about this..."); LOWORD(v11) = -1; BYTE2(v11) = -1; v6 = (cocos2d::CCObject *)DialogObject::create( (DialogObject *)&v12, (std::string)v13, (std::string)11, 1065353216, 0.0, v11); cocos2d::CCArray::addObject(v4, v6); a1 = (LevelAreaLayer *)((char *)a1 + 316); sub_774008(v13); sub_774008(&v12); v7 = DialogLayer::createWithObjects(v4, (int)&dword_0 + 2); v7->m_delegate = (DialogDelegate *)a1; v8 = v7; v9 = cocos2d::CCDirector::sharedDirector(); v9->m_pRunningScene->addChild_0(v9->m_pRunningScene, v8, 1000); v8->m_delegate = (DialogDelegate *)a1; DialogLayer::updateChatPlacement(v8, Center); DialogLayer::animateInRandomSide(v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source