// // GJGarageLayer::onArrow from 0x1003049f0 to 0x100304ab4 (196 bytes) // // 1 xrefs: // > GJGarageLayer::setupIconSelect @ 0x1003041a8 // // 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::onArrow(GJGarageLayer *a1, cocos2d::CCObject *a2) { int v3; // w20 GameManager *v4; // x0 GameManager *v5; // x0 int v6; // w22 int v7; // w8 int v8; // w10 int v9; // w8 int v10; // w10 int v11; // w1 IconType *p_m_iconType; // [xsp+8h] [xbp-28h] BYREF v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); v4 = GameManager::sharedState(); GameManager::activeIconForType(v4, a1->m_iconType); v5 = GameManager::sharedState(); v6 = GameManager::countForType(v5, a1->m_iconType); p_m_iconType = &a1->m_iconType; v7 = *((_DWORD *)sub_1001A6048( (__int64)&a1->m_iconPages, (int *)&a1->m_iconType, (__int64)&unk_100644D9D, (unsigned int **)&p_m_iconType) + 8); if ( v3 == 1 ) v8 = 1; else v8 = -1; v9 = v7 + v8; if ( v9 <= v6 / 36 ) v10 = v9; else v10 = 0; if ( v9 >= 0 ) v11 = v10; else v11 = v6 / 36; GJGarageLayer::setupPage(a1, v11, a1->m_iconType); }
GD Web Decomp Icon

GD Web Decomp

Raw Source