// // GJShopLayer::ccTouchBegan from 0x10014d77c to 0x10014d8fc (384 bytes) // // 2 xrefs: // > sub_10014DA6C @ 0x10014da70 // > @ 0x100798c18 // // 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 // bool __fastcall GJShopLayer::ccTouchBegan(GJShopLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { ShopType m_type; // w21 double v5; // d0 float v6; // s8 __int64 v7; // x0 GameManager *v8; // x0 GameStatsManager *v9; // x20 int v10; // w20 AnimatedShopKeeper *m_shopKeeper; // x0 void *__p[2]; // [xsp+0h] [xbp-60h] BYREF char v14; // [xsp+17h] [xbp-49h] double v15[2]; // [xsp+18h] [xbp-48h] BYREF cocos2d::CCPoint v16; // [xsp+28h] [xbp-38h] BYREF m_type = a1->m_type; if ( !m_type ) { cocos2d::CCTouch::getLocation(a2); cocos2d::CCNode::convertToNodeSpace(a1, &v16); v5 = sub_1000229D0(&v16, v15); v6 = *(float *)((__int64 (__fastcall *)(AnimatedShopKeeper *, double))a1->m_shopKeeper->getPosition)( a1->m_shopKeeper, v5) + -40.0; v7 = ((__int64 (__fastcall *)(AnimatedShopKeeper *))a1->m_shopKeeper->getPosition)(a1->m_shopKeeper); sub_100022990((float *)v15, v6, (float)(*(float *)(v7 + 4) + -45.0) + 10.0, 80.0, 90.0); if ( sub_100022C60((float *)v15, (float *)&v16) && !a1->m_shopKeeper->m_reacting ) { v8 = GameManager::sharedState(); if ( GameManager::getUGV(v8, "31") ) { v9 = GameStatsManager::sharedState(); sub_100009900(__p, "0022"); v10 = GameStatsManager::isSpecialChestUnlocked(v9, __p) ^ 1; if ( v14 < 0 ) operator delete(__p[0]); } else { v10 = 0; } m_shopKeeper = a1->m_shopKeeper; if ( m_shopKeeper->m_reactCount > 4 || v10 ) { m_shopKeeper->m_reactCount = 2; GJShopLayer::showReactMessage(a1); if ( a1->m_zolgurothDialogIndex == 9 ) a1->m_shopKeeper->m_reactCount = 0; } else { AnimatedShopKeeper::playReactAnimation(m_shopKeeper); } } } return m_type == 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source