// // ClearPlatformerSavesPopup::FLAlert_Clicked from 0xc90194 to 0xc90344 (432 bytes) // // 3 xrefs: // > `non-virtual thunk to'ClearPlatformerSavesPopup::FLAlert_Clicked @ 0xc9034c // > @ 0xaa260 // > @ 0x14f47c0 // // 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 13:05:47 +0000 // __int64 __fastcall ClearPlatformerSavesPopup::FLAlert_Clicked( ClearPlatformerSavesPopup *this, FLAlertLayer *a2, unsigned __int8 a3) { int v3; // w20 GameLevelManager *v5; // x0 GameLevelManager *v7; // x0 char *v8; // x2 cocos2d::CCString *v9; // x0 const char *CString; // x0 size_t v11; // x0 __int64 v12; // x20 char *v13; // [xsp+38h] [xbp+38h] char *v14; // [xsp+38h] [xbp+38h] __int64 v15; // [xsp+48h] [xbp+48h] BYREF size_t v16; // [xsp+50h] [xbp+50h] void *v17; // [xsp+58h] [xbp+58h] __int64 v18; // [xsp+60h] [xbp+60h] BYREF size_t v19; // [xsp+68h] [xbp+68h] void *v20; // [xsp+70h] [xbp+70h] v3 = a3; v5 = (GameLevelManager *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2); if ( (_DWORD)v5 == 1 && v3 ) { v7 = (GameLevelManager *)GameLevelManager::sharedState(v5); v13 = (char *)(unsigned int)GameLevelManager::clearPlatformerSaves(v7, *((unsigned __int8 *)this + 672)); ClearPlatformerSavesPopup::updateStats(this); if ( (_DWORD)v13 == 1 ) v8 = &byte_11B8890; else v8 = "s"; v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Cleared %i platformer save%s.", v13, v8); CString = (const char *)cocos2d::CCString::getCString(v9); v15 = 0; v14 = (char *)CString; v16 = 0; v17 = nullptr; v11 = strlen(CString); std::string::__init(&v15, v14, v11); v18 = 0; v19 = 0; v20 = nullptr; if ( (v15 & 1) != 0 ) { std::string::__init(&v18, v17, v16); } else { v20 = v17; v18 = v15; v19 = v16; } v12 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"Cleared", (char *)&v18, (ButtonSprite *)"OK", nullptr, 300.0); if ( (v18 & 1) != 0 ) operator delete(v20); (*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 1312LL))(v12); if ( (v15 & 1) != 0 ) operator delete(v17); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source