// // EditorOptionsLayer::onButtonsPerRow from 0x4a7610 to 0x4a765c (76 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 EditorOptionsLayer::onButtonsPerRow(EditorOptionsLayer *a1, cocos2d::CCObject *a2) { int v3; // r0 int m_buttonsPerRow; // r1 const char *v5; // r1 cocos2d::CCLabelBMFont *m_buttonsPerRowLabel; // r4 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r5 cocos2d::CCString *v8; // r0 const char *CString; // r0 v3 = a2->getTag(a2); m_buttonsPerRow = a1->m_buttonsPerRow; if ( v3 == 1 ) v5 = (const char *)(m_buttonsPerRow + 1); else v5 = (const char *)(m_buttonsPerRow - 1); if ( (int)v5 < 6 ) v5 = &byte_6; if ( (int)v5 >= 12 ) v5 = &byte_9[3]; a1->m_buttonsPerRow = (int)v5; m_buttonsPerRowLabel = a1->m_buttonsPerRowLabel; setString = m_buttonsPerRowLabel->setString; v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v5); CString = cocos2d::CCString::getCString(v8); setString(m_buttonsPerRowLabel, (const unsigned __int8 *)CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source