// // GJRateEditorSoundLayer::onCustomButton from 0x953748 to 0x95393c (500 bytes) // // 2 xrefs: // > @ 0x9bbd8 // > @ 0x146c5d0 // // 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::onCustomButton(GJRateEditorSoundLayer *this, cocos2d::CCObject *a2) { ButtonSprite **v4; // x20 GameLevelManager *v5; // x0 GameLevelManager *v6; // x0 GameLevelManager *updated; // x0 __int64 v8; // x0 __int64 v9; // x0 char v10; // w1 __int64 v12; // [xsp+40h] [xbp+40h] BYREF __int64 v13; // [xsp+48h] [xbp+48h] void *v14; // [xsp+50h] [xbp+50h] if ( (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) == -21 ) { v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "Do you want to unrate this sound pack?", 0x26u); v4 = (ButtonSprite **)FLAlertLayer::create( (__int64)this + 1032, (cocos2d::CCLabelBMFont *)"Unrate Sound Pack", (char *)&v12, (ButtonSprite *)"Cancel", (ButtonSprite *)"Unrate", 380.0); if ( (v12 & 1) != 0 ) operator delete(v14); ButtonSprite::updateBGImage(v4[77], "GJ_button_06.png"); (*((void (__fastcall **)(ButtonSprite **, __int64))*v4 + 9))(v4, 4294967274LL); (*((void (__fastcall **)(ButtonSprite **))*v4 + 164))(v4); } else if ( (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) == -23 && (int)(*(float (__fastcall **)(GJRateEditorSoundLayer *, __int64))(*(_QWORD *)this + 1464LL))( this, 4294967276LL) > 0 ) { v6 = (GameLevelManager *)GameLevelManager::sharedState(v5); updated = (GameLevelManager *)(unsigned __int8)GameLevelManager::updateEditorSoundRankAdmin(v6); if ( (_BYTE)updated ) { *(_QWORD *)(GameLevelManager::sharedState(updated) + 1360) = (char *)this + 1024; v8 = *((_QWORD *)this + 131); if ( v8 ) *(_QWORD *)(v8 + 664) = 0; v12 = 0; v13 = 0; v14 = nullptr; std::string::__init(&v12, "Updating rank...", 0x10u); v9 = UploadActionPopup::create((char *)this + 1016, &v12); v10 = v12; *((_QWORD *)this + 131) = v9; if ( (v10 & 1) != 0 ) { operator delete(v14); v9 = *((_QWORD *)this + 131); } (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source