// // MenuLayer::FLAlert_Clicked from 0x1002680cc to 0x10026825c (400 bytes) // // 2 xrefs: // > sub_10026828C @ 0x100268290 // > @ 0x1007d1d50 // // 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 MenuLayer::FLAlert_Clicked(MenuLayer *a1, FLAlertLayer *a2, bool a3) { int v4; // w0 GameManager *v5; // x0 cocos2d::CCObject *v6; // x1 cocos2d::CCApplication *v7; // x0 AppDelegate *v8; // x0 AppDelegate *v9; // x0 cocos2d::CCDelayTime *v10; // x20 char v11; // w0 __int64 v12; // x1 __int64 v13; // x2 __int64 v14; // x3 __int64 v15; // x4 __int64 v16; // x5 __int64 v17; // x6 __int64 v18; // x7 cocos2d::CCSequence *v19; // x20 cocos2d::CCDirector *v20; // x0 cocos2d::CCActionManager *v21; // x0 cocos2d::CCString *v22; // x0 char *CString; // x0 cocos2d::CCApplication *v24; // x0 void **v25; // x1 void *__p[2]; // [xsp+18h] [xbp-28h] BYREF char v27; // [xsp+2Fh] [xbp-11h] cocos2d::SEL_CallFunc v28; // 0:x1.16 if ( a3 ) { v4 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2); if ( v4 > 1 ) { if ( v4 == 2 ) { v22 = (cocos2d::CCString *)sub_100268F4C("https://www.robtopgames.com/download/gj%i", 1); CString = (char *)cocos2d::CCString::getCString(v22); sub_100009900(__p, CString); v24 = cocos2d::CCApplication::sharedApplication(); if ( v27 >= 0 ) v25 = __p; else v25 = (void **)__p[0]; ((void (__fastcall *)(cocos2d::CCApplication *, void **))v24->openURL)(v24, v25); if ( v27 < 0 ) operator delete(__p[0]); } else if ( v4 == 3 ) { v7 = cocos2d::CCApplication::sharedApplication(); ((void (__fastcall *)(cocos2d::CCApplication *, const char *))v7->openURL)( v7, "https://www.newgrounds.com/audio"); } } else if ( v4 ) { if ( v4 == 1 ) { v5 = GameManager::sharedState(); GameManager::setGameVariable(v5, "0034", 1); PlatformToolbox::activateGameCenter(); if ( PlatformToolbox::isLocalPlayerAuthenticated() ) MenuLayer::onGameCenter(a1, v6); } } else { v8 = AppDelegate::get(); ((void (__fastcall *)(AppDelegate *, __int64))v8->trySaveGame)(v8, 1); v9 = AppDelegate::get(); AppDelegate::showLoadingCircle(v9, 0, 1, 1); v10 = cocos2d::CCDelayTime::create(0.5); v28.ptr = (void (*)(void))MenuLayer::endGame; v28.adj = 0; v11 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v28); v19 = sub_10018A494(v10, v12, v13, v14, v15, v16, v17, v18, v11); v20 = cocos2d::CCDirector::sharedDirector(); v21 = (cocos2d::CCActionManager *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v20->getActionManager)(v20); cocos2d::CCActionManager::addAction(v21, v19, a1, 0); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source