// // GJRateEditorSoundLayer::init from 0x953b7c to 0x954128 (1452 bytes) // // 2 xrefs: // > GJRateEditorSoundLayer::create @ 0x954388 // > @ 0x86e18 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:57:24 +0000 // __int64 __fastcall GJRateEditorSoundLayer::init(cocos2d::CCNode **this, GJEditorSoundConfig *a2) { unsigned __int8 v4; // w0 unsigned int v5; // w22 cocos2d::CCDirector *v6; // x0 cocos2d::CCDirector *v7; // x0 cocos2d::CCMenu *v8; // x0 __int64 v9; // x0 __int64 v10; // x0 __int64 v11; // x5 const char *v12; // x1 cocos2d::CCString *v13; // x0 size_t v14; // x0 const char *v15; // x2 cocos2d::CCLabelBMFont *v16; // x0 cocos2d::CCLabelBMFont *v17; // x24 void (__fastcall *v18)(cocos2d::CCLabelBMFont *, __int64 *); // x25 const char *v19; // x6 __int64 v20; // x25 const char *v21; // x6 __int64 v22; // x23 cocos2d::CCArray *v23; // x0 cocos2d::CCArray *v24; // x23 const char *v25; // x1 __int64 v26; // x2 __int64 v27; // x3 bool v28; // w4 __int64 v29; // x5 const char *v30; // x6 __int64 v31; // x0 cocos2d::CCObject *v32; // x24 const char *v33; // x1 __int64 v34; // x2 __int64 v35; // x3 bool v36; // w4 __int64 v37; // x5 const char *v38; // x6 __int64 v39; // x0 cocos2d::CCObject *v40; // x24 cocos2d::CCNode *v41; // x25 char *CString; // [xsp+98h] [xbp+68h] __int64 v44; // [xsp+A8h] [xbp+78h] BYREF float v45; // [xsp+B0h] [xbp+80h] BYREF float v46; // [xsp+B4h] [xbp+84h] _BYTE v47[8]; // [xsp+B8h] [xbp+88h] BYREF __int64 v48; // [xsp+C0h] [xbp+90h] BYREF __int64 v49[2]; // [xsp+C8h] [xbp+98h] BYREF void *v50; // [xsp+D8h] [xbp+A8h] __int64 v51; // [xsp+E0h] [xbp+B0h] BYREF __int64 v52; // [xsp+E8h] [xbp+B8h] void *v53; // [xsp+F0h] [xbp+C0h] if ( a2 && (v4 = SetupTriggerPopup::init((SetupTriggerPopup *)this, nullptr, nullptr, 300.0, 180.0, 1, 0.0), (v5 = v4) != 0) ) { SetupTriggerPopup::preSetup((SetupTriggerPopup *)this); v51 = 0; v52 = 0; v53 = nullptr; std::string::__init(&v51, "Feature Sound Pack", 0x12u); SetupTriggerPopup::addTitle(this, &v51); if ( (v51 & 1) != 0 ) operator delete(v53); *(this + 130) = a2; v6 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(a2); v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(&v44, v7); v8 = (cocos2d::CCMenu *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v45, *(float *)&v44 * 0.5, *((float *)&v44 + 1) * 0.5); v9 = cocos2d::CCMenu::create(v8); *(this + 69) = (cocos2d::CCNode *)v9; (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v9, 10); v51 = 0; v10 = (__int64)*(this + 130); v52 = 0; v53 = nullptr; if ( (*(_BYTE *)(v10 + 376) & 1) != 0 ) { std::string::__init(&v51, *(void **)(v10 + 392), *(_QWORD *)(v10 + 384)); v10 = (__int64)*(this + 130); } else { v11 = *(_QWORD *)(v10 + 384); v51 = *(_QWORD *)(v10 + 376); v52 = v11; v53 = *(void **)(v10 + 392); } v12 = (char *)&v51 + 1; if ( (v51 & 1) != 0 ) v12 = (const char *)v53; v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s (%d sounds)", v12, *(unsigned int *)(v10 + 356)); CString = (char *)cocos2d::CCString::getCString(v13); v49[0] = 0; v49[1] = 0; v50 = nullptr; v14 = strlen(CString); std::string::__init(v49, CString, v14); if ( (v51 & 1) != 0 ) operator delete(v53); v16 = (cocos2d::CCLabelBMFont *)((char *)v49 + 1); if ( (v49[0] & 1) != 0 ) v16 = (cocos2d::CCLabelBMFont *)v50; v17 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v16, "goldFont.fnt", v15); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v17 + 160LL))(v17, 0.55); cocos2d::CCLabelBMFont::limitLabelWidth(v17, *((float *)this + 183) - 80.0, 0.55, 0.3); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)*(this + 73) + 464LL))( *(this + 73), v17, 2); v18 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v17 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v48, v45, (float)(v46 + (float)(*((float *)this + 184) * 0.5)) - 40.0); v18(v17, &v48); v51 = 0; v52 = 0; v53 = nullptr; std::string::__init(&v51, "Rank:", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v45, v46 + 8.0); SetupTriggerPopup::createValueControlAdvanced( this, 4294967276LL, &v51, &v48, 1, 2, 4, 1, 0.7, 0.0, 0.0, 0, 0, 0, 2, 0); if ( (v51 & 1) != 0 ) operator delete(v53); SetupTriggerPopup::updateValue((SetupTriggerPopup *)this, -20, 1.0); v20 = ButtonSprite::create( (ButtonSprite *)"Unrate", nullptr, 0, 0, 0.35, "bigFont.fnt", "GJ_button_05.png", v19, 25.0); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v48, (float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v44 * 0.5)) - 40.0, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v44 + 1) * 0.5)) - 22.0); SetupTriggerPopup::addCustomButton(this, 4294967275LL, v20, &v48, 0, 0); v22 = ButtonSprite::create( (ButtonSprite *)"Rank\nOnly", nullptr, 0, 0, 0.3, "bigFont.fnt", "GJ_button_05.png", v21, 25.0); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v48, (float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v44 * 0.5)) - 30.0, 20.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v44 + 1) * 0.5))); v23 = (cocos2d::CCArray *)SetupTriggerPopup::addCustomButton(this, 4294967273LL, v22, &v48, 0, 0); v24 = (cocos2d::CCArray *)cocos2d::CCArray::create(v23); v31 = ButtonSprite::create((ButtonSprite *)"Cancel", v25, v26, v27, v28, v29, v30); v32 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v31, 0, (__int64)this, 1368, 1); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v32); cocos2d::CCArray::addObject(v24, v32); v39 = ButtonSprite::create((ButtonSprite *)"Submit", v33, v34, v35, v36, v37, v38); v40 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v39, 0, (__int64)this, (__int64)GJRateEditorSoundLayer::onSubmit, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v40); cocos2d::CCArray::addObject(v24, v40); v41 = *(this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v47, *(float *)&v44 * 0.5, 25.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v44 + 1) * 0.5))); cocos2d::CCNode::convertToNodeSpace(&v48, v41, (const cocos2d::CCPoint *)v47); GameToolbox::alignItemsHorisontally((__int64)v24, (__int64)&v48, 0, 15.0); SetupTriggerPopup::postSetup((SetupTriggerPopup *)this); if ( (v49[0] & 1) != 0 ) operator delete(v50); } else { return 0; } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source