// // GJGarageLayer::dialogClosed from 0x100306cb4 to 0x100306de8 (308 bytes) // // 2 xrefs: // > sub_100306DE8 @ 0x100306dec // > @ 0x1007ec058 // // 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 __fastcall GJGarageLayer::dialogClosed(GJGarageLayer *a1, DialogLayer *a2) { GameManager *v3; // x0 cocos2d::CCDirector *v4; // x0 __n128 v5; // q0 __n128 v6; // q1 float v7; // s2 float v8; // s3 CurrencyRewardLayer *v9; // x20 GJItemIcon *v10; // x19 __n128 v11; // q0 __n128 v12; // q1 float v13; // s2 int v14; // [xsp+10h] [xbp-30h] BYREF float v15; // [xsp+18h] [xbp-28h] float v16; // [xsp+1Ch] [xbp-24h] cocos2d::CCPoint v17; // 0:s0.4,4:s1.4 cocos2d::CCPoint v18; // 0:s0.4,4:s1.4 v3 = GameManager::sharedState(); GameManager::reportAchievementWithID(v3, "geometry.ach.rate", 100, 0); GameManager::sharedState()->m_ratedGame = 1; GameManager::sharedState()->m_hasRatedGame = 1; ((void (__fastcall *)(GJGarageLayer *))a1->updateRate)(a1); v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v4); v5.n128_f32[0] = v15 * 0.5; v6.n128_f32[0] = v16 * 0.5; sub_100022980(v5, v6, &v14); v17.x = 0.0; v17.y = 1.0; v9 = CurrencyRewardLayer::create(0, 0, 0, 0, Icon, 0, Icon, 0, v17, (CurrencyRewardType)&v14, v7, v8); ((void (__fastcall *)(GJGarageLayer *, CurrencyRewardLayer *, __int64))a1->addChild_0)(a1, v9, 100); v10 = GJItemIcon::create( (UnlockType)1, 13, (cocos2d::ccColor3B)-5263441, (cocos2d::ccColor3B)-1, 0, 1, 1, (cocos2d::ccColor3B)-1); v11.n128_f32[0] = v15 * 0.5; v12.n128_f32[0] = v16 * 0.5; sub_100022980(v11, v12, &v14); v18.x = 0.5; CurrencyRewardLayer::createUnlockObject(v9, v10, v18, v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source