// // MenuLayer::FLAlert_Clicked from 0x3f9d00 to 0x3f9e1e (286 bytes) // // 1 xrefs: // > `non-virtual thunk to'MenuLayer::FLAlert_Clicked @ 0x3f9e38 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:47:19 +0000 // AppDelegate *__fastcall MenuLayer::FLAlert_Clicked(MenuLayer *this, FLAlertLayer *a2, int a3) { AppDelegate *result; // r0 int v5; // r0 AppDelegate *v6; // r0 AppDelegate *v7; // r0 float v8; // r1 cocos2d::CCSequence *v9; // r7 cocos2d::CCFiniteTimeAction *v10; // r0 int v11; // r3 cocos2d::CCDirector *v12; // r7 int v13; // r0 cocos2d::CCActionManager *v14; // r0 GameManager *v15; // r0 PlatformToolbox *v16; // r0 PlatformToolbox *v17; // r0 cocos2d::CCString *v18; // r0 const char *CString; // r6 size_t v20; // r0 cocos2d::CCApplication *v21; // r0 int v22; // r0 char *v23; // r1 int v24; // r0 int v25[2]; // [sp+8h] [bp-14h] BYREF char *v26; // [sp+10h] [bp-Ch] result = (AppDelegate *)_stack_chk_guard; if ( a3 ) { result = (AppDelegate *)(*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2); switch ( (unsigned int)result ) { case 0u: v5 = AppDelegate::get(result); v6 = (AppDelegate *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v5 + 32))(v5, 1); v7 = (AppDelegate *)AppDelegate::get(v6); AppDelegate::showLoadingCircle(v7, 0, 1, 1); v9 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3F000000, v8); v10 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, MenuLayer::endGame, 0); v12 = (cocos2d::CCDirector *)cocos2d::CCSequence::create(v9, v10, 0, v11, MenuLayer::endGame, 0); v13 = cocos2d::CCDirector::sharedDirector(v12); v14 = (cocos2d::CCActionManager *)(*(int (__fastcall **)(int))(*(_DWORD *)v13 + 72))(v13); result = (AppDelegate *)cocos2d::CCActionManager::addAction(v14, v12, this, 0); break; case 1u: v15 = (GameManager *)GameManager::sharedState(result); v16 = (PlatformToolbox *)GameManager::setGameVariable(v15, "0034", 1); PlatformToolbox::activateGameCenter(v16); result = (AppDelegate *)PlatformToolbox::isLocalPlayerAuthenticated(v17); if ( result ) result = (AppDelegate *)MenuLayer::onGameCenter(this, nullptr); break; case 2u: v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"https://www.robtopgames.com/download/gj%i", nullptr); v25[0] = 0; v25[1] = 0; v26 = nullptr; CString = (const char *)cocos2d::CCString::getCString(v18); v20 = strlen(CString); v21 = (cocos2d::CCApplication *)std::string::__init(v25, CString, v20); v22 = cocos2d::CCApplication::sharedApplication(v21); if ( (v25[0] & 1) != 0 ) v23 = v26; else v23 = (char *)v25 + 1; (*(void (__fastcall **)(int, char *, int))(*(_DWORD *)v22 + 52))(v22, v23, LOBYTE(v25[0]) << 31); result = (AppDelegate *)std::string::~string((int)v25); break; case 3u: v24 = cocos2d::CCApplication::sharedApplication(result); result = (AppDelegate *)(*(int (__fastcall **)(int, const char *))(*(_DWORD *)v24 + 52))( v24, "https://www.newgrounds.com/audio"); break; default: return result; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source