// // MenuLayer::FLAlert_Clicked from 0x5c27a4 to 0x5c29bc (536 bytes) // // 3 xrefs: // > `non-virtual thunk to'MenuLayer::FLAlert_Clicked @ 0x5c29c0 // > @ 0x2c190 // > @ 0x1147198 // // 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 MenuLayer::FLAlert_Clicked(MenuLayer *a1, FLAlertLayer *a2, bool a3) { AppDelegate *v4; // x0 AppDelegate *v5; // x0 cocos2d::CCSequence *v6; // x21 cocos2d::CCFiniteTimeAction *v7; // x0 cocos2d::CCDirector *v8; // x0 cocos2d::CCActionManager *v9; // x0 GameManager *v10; // x0 cocos2d::CCApplication *v11; // x0 cocos2d::CCString *v12; // x0 char *CString; // x0 cocos2d::CCApplication *v14; // x0 unsigned __int8 *v15; // x0 unsigned int *v16; // x2 int v17; // w1 cocos2d::CCAction *v18; // [xsp+38h] [xbp+38h] const unsigned __int8 *v19; // [xsp+50h] [xbp+50h] BYREF if ( a3 ) { switch ( a2->getTag(a2) ) { case 0: v4 = AppDelegate::get(); v4->trySaveGame(v4, 1); v5 = AppDelegate::get(); AppDelegate::showLoadingCircle(v5, 0, 1, 1); v6 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.5); v7 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, MenuLayer::endGame, 0); v18 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v6, v7, 0); v8 = cocos2d::CCDirector::sharedDirector(); v9 = v8->getActionManager(v8); cocos2d::CCActionManager::addAction(v9, v18, a1, 0); break; case 1: v10 = GameManager::sharedState(); GameManager::setGameVariable(v10, "0034", 1); PlatformToolbox::activateGameCenter(); if ( PlatformToolbox::isLocalPlayerAuthenticated() ) MenuLayer::onGameCenter(a1, nullptr); break; case 2: v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"https://www.robtopgames.com/download/gj%i", nullptr); CString = (char *)cocos2d::CCString::getCString(v12); sub_D153B8((int)&v19, CString); v14 = cocos2d::CCApplication::sharedApplication(); v14->openURL(v14, v19); v15 = (unsigned __int8 *)(v19 - 24); if ( v19 - 24 != (const unsigned __int8 *)&qword_124B6B0 ) { if ( &pthread_create ) { v16 = (unsigned int *)(v19 - 8); do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); } else { v17 = *((_DWORD *)v19 - 2); *((_DWORD *)v19 - 2) = v17 - 1; } if ( v17 <= 0 ) operator delete(v15); } break; case 3: v11 = cocos2d::CCApplication::sharedApplication(); v11->openURL(v11, "https://www.newgrounds.com/audio"); break; default: return; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source