// // OptionsCell::loadFromObject from 0x1001025dc to 0x100102948 (876 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x10010118c // > CustomListView::reloadAll @ 0x10010bdf8 // // 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 OptionsCell::loadFromObject(OptionsCell *a1, OptionsObject *a2) { __int64 m_count; // x21 std::string *p_m_name; // x0 cocos2d::CCLabelBMFont *v6; // x20 __n128 v7; // q0 __n128 v8; // q1 __n128 v9; // q0 __n128 v10; // q1 void **v11; // x1 std::string::size_type v12; // x2 std::string *v13; // x0 cocos2d::CCLabelBMFont *v14; // x21 __n128 v15; // q0 __n128 v16; // q1 float32x2_t *v17; // x22 float v18; // s8 __n128 v19; // q0 __n128 v20; // q1 double v21; // d0 const char *v22; // x0 cocos2d::CCSprite *v23; // x20 CCMenuItemSpriteExtra *v24; // x20 __int64 v25; // x20 __n128 v26; // q0 __n128 v27; // q1 float32x2_t v28; // [xsp+8h] [xbp-78h] BYREF void *__p[2]; // [xsp+10h] [xbp-70h] BYREF unsigned __int8 v30; // [xsp+27h] [xbp-59h] std::string v31; // [xsp+28h] [xbp-58h] BYREF cocos2d::SEL_MenuHandler v32; // 0:x3.16 a1->m_optionsObject = a2; ((void (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->removeAllChildrenWithCleanup)(a1->m_mainLayer, 1); m_count = (unsigned int)a2->m_count; p_m_name = &a2->m_name; if ( a2->m_name.m_data.m_short.shortStorage.__elems_[22] < 0 ) p_m_name = (std::string *)p_m_name->m_data.m_long.capacitym1; v6 = cocos2d::CCLabelBMFont::create_1((const char *)p_m_name, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v6, 2); v7 = ((__n128 (__fastcall *)(cocos2d::CCLabelBMFont *, float))v6->setScale)(v6, 0.4); v7.n128_u32[0] = 0; v8.n128_u32[0] = 0.5; sub_100022980(v7, v8, &v31); v9 = ((__n128 (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v6->setAnchorPoint)(v6, &v31); v10.n128_f32[0] = a1->m_height * 0.5; v9.n128_u32[0] = 1109393408; sub_100022980(v9, v10, &v31); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v6->setPosition)(v6, &v31); if ( (_DWORD)m_count ) { if ( (int)m_count >= 1 ) { sub_100009900(&v31, "[ "); GameToolbox::intToString(m_count, __p); if ( (v30 & 0x80u) == 0 ) v11 = __p; else v11 = (void **)__p[0]; if ( (v30 & 0x80u) == 0 ) v12 = v30; else v12 = (std::string::size_type)__p[1]; std::string::append(&v31, (const std::string::value_type *)v11, v12); if ( (char)v30 < 0 ) operator delete(__p[0]); std::string::append(&v31, " ]"); if ( (v31.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v13 = &v31; else v13 = (std::string *)v31.__r_.__value_.__r.__words[0]; v14 = cocos2d::CCLabelBMFont::create_1((const char *)v13, "chatFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v14, 2); v15 = ((__n128 (__fastcall *)(cocos2d::CCLabelBMFont *, float))v14->setScale)(v14, 0.6); v15.n128_u32[0] = 0; v16.n128_u32[0] = 0.5; sub_100022980(v15, v16, __p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v14->setAnchorPoint)(v14, __p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v14->setColor)(v14, algn_100636CCD); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v14->setOpacity)(v14, 175); v17 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v6->getPosition)(v6); v18 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v6->getContentSize)(v6); v19.n128_f64[0] = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v6->getScale)(v6); v19.n128_f32[0] = (float)(v18 * v19.n128_f32[0]) + 8.0; v20.n128_u32[0] = 0; sub_100022980(v19, v20, &v28); *(float32x2_t *)&v21 = sub_1000229DC(v17, &v28, (float32x2_t *)__p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v14->setPosition)(v14, __p, v21); if ( SHIBYTE(v31.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v31.__r_.__value_.__l.__data_); } } else { v31.__r_.__value_.__s.__data_[2] = -106; LOWORD(v31.__r_.__value_.__l.__data_) = -26986; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v6->setColor)(v6, &v31); } if ( a1->m_optionsObject->m_enabled ) v22 = "GJ_checkOn_001.png"; else v22 = "GJ_checkOff_001.png"; v23 = cocos2d::CCSprite::createWithSpriteFrameName(v22); ((void (__fastcall *)(cocos2d::CCSprite *, float))v23->setScale)(v23, 0.6); v32.ptr = (void (__cdecl *)(cocos2d::CCObject *))OptionsCell::onToggleOption; v32.adj = 0; v24 = CCMenuItemSpriteExtra::create(v23, nullptr, a1, v32); CCMenuItemSpriteExtra::setSizeMult(v24, 1.5); v25 = sub_1001D7ED0(v24); v26 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, __int64, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v25, 3); v27.n128_f32[0] = a1->m_height * 0.5; v26.n128_u32[0] = 20.0; sub_100022980(v26, v27, &v31); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v25 + 184LL))(v25, &v31); }
GD Web Decomp Icon

GD Web Decomp

Raw Source