// // SecretRewardsLayer::scene from 0x1403d2510 to 0x1403d2661 (337 bytes) // // 3 xrefs: // > CreatorLayer::onTreasureRoom @ 0x14009ee6c // > GJShopLayer::onBack @ 0x1402acdcf // > @ 0x1406d7cac // // 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 // // local variable allocation has failed, the output may be wrong! // Hidden C++ exception states: #wind=1 cocos2d::CCScene *SecretRewardsLayer::scene(bool a1) { cocos2d::CCScene *v2; // rsi __int64 v3; // rcx char *v4; // rdi v2 = (cocos2d::CCScene *)cocos2d::CCScene::create(a1); *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v3) + 224) = v2; v4 = (char *)operator new(0x258u); cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v4); *(_QWORD *)v4 = &SecretRewardsLayer::`vftable'; *((_QWORD *)v4 + 40) = &SecretRewardsLayer::`vftable'; *((_QWORD *)v4 + 41) = &SecretRewardsLayer::`vftable'; *((_QWORD *)v4 + 42) = &SecretRewardsLayer::`vftable'; *((_QWORD *)v4 + 43) = &SecretRewardsLayer::`vftable'; *((_QWORD *)v4 + 44) = &SecretRewardsLayer::`vftable'; *((_QWORD *)v4 + 51) = &SecretRewardsLayer::`vftable'; *((_QWORD *)v4 + 52) = &SecretRewardsLayer::`vftable'; *((_QWORD *)v4 + 53) = 0; *((_QWORD *)v4 + 54) = 0; *((_QWORD *)v4 + 56) = 0; *((_QWORD *)v4 + 58) = 0; *((_QWORD *)v4 + 66) = 0; *((_DWORD *)v4 + 135) = 0; *((_QWORD *)v4 + 69) = 0; *((_QWORD *)v4 + 71) = 0; *((_QWORD *)v4 + 72) = 0; v4[584] = 0; *(_QWORD *)(v4 + 588) = 0; if ( SecretRewardsLayer::init((SecretRewardsLayer *)v4, a1) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4); } else { (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1); v4 = nullptr; } v2->addChild_1(v2, (cocos2d::CCNode *)v4); return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source