// // LevelBrowserLayer::onProcessSelected from 0x7f6690 to 0x7f67f4 (356 bytes) // // 3 xrefs: // > @ 0x44728 // > LevelBrowserLayer::init @ 0x7fa408 // > @ 0x15413f8 // // 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:54:38 +0000 // __int64 __fastcall LevelBrowserLayer::onProcessSelected(LevelBrowserLayer *this, cocos2d::CCObject *a2) { int v4; // w21 cocos2d::CCString *v6; // x0 const char *CString; // x0 size_t v8; // x0 ButtonSprite **v9; // x21 cocos2d::CCObject *v10; // x0 __int64 (__fastcall *v11)(cocos2d::CCObject *); // x1 void (__fastcall *v12)(ButtonSprite **, _QWORD); // x20 unsigned int v13; // w0 char *v14; // [xsp+38h] [xbp+38h] __int64 v15[2]; // [xsp+40h] [xbp+40h] BYREF void *v16; // [xsp+50h] [xbp+50h] v4 = LevelBrowserLayer::selectedCount(this); if ( v4 > 0 && (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) == 5 ) { v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Are you sure you want to delete the %i selected levels?", (const char *)(unsigned int)v4); CString = (const char *)cocos2d::CCString::getCString(v6); v15[0] = 0; v14 = (char *)CString; v15[1] = 0; v16 = nullptr; v8 = strlen(CString); std::string::__init(v15, v14, v8); v9 = (ButtonSprite **)FLAlertLayer::create( (__int64)this + 552, (cocos2d::CCLabelBMFont *)"Delete", (char *)v15, (ButtonSprite *)"Back", (ButtonSprite *)"Delete", 0, 380.0, 0.0, 1.0); if ( (v15[0] & 1) != 0 ) operator delete(v16); if ( v9 ) { ButtonSprite::updateBGImage(v9[77], "GJ_button_06.png"); v10 = a2; v11 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL); v12 = *((void (__fastcall **)(ButtonSprite **, _QWORD))*v9 + 9); v13 = v11(v10); v12(v9, v13); (*((void (__fastcall **)(ButtonSprite **))*v9 + 164))(v9); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source