// // AccountLayer::onSync from 0x584150 to 0x584226 (214 bytes) // // 0 xrefs: // // 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:52:56 +0000 // int __fastcall AccountLayer::onSync(AccountLayer *this, cocos2d::CCObject *a2) { GameLevelManager *v3; // r0 const char *TimeLeft; // r0 cocos2d::CCString *v5; // r0 const char *CString; // r8 size_t v7; // r0 int *v8; // r5 int v10; // [sp+8h] [bp-10h] BYREF int v11; // [sp+Ch] [bp-Ch] int v12; // [sp+10h] [bp-8h] v3 = (GameLevelManager *)GameLevelManager::sharedState(this); TimeLeft = (const char *)GameLevelManager::getTimeLeft(v3, "sync_account", 30.0); if ( (unsigned int)(TimeLeft - 1) > 0x1D ) { v10 = 0; v11 = 0; v12 = 0; std::string::__init( &v10, "Do you want to download your account data from the cloud?\n" "This will merge current data with the saved data.", 0x83u); v8 = FLAlertLayer::create( (int)this + 492, (cocos2d::CCLabelBMFont *)"Load Data", (int)&v10, (ButtonSprite *)"Cancel", (ButtonSprite *)"Load", 300.0); std::string::~string((int)&v10); (*(void (__fastcall **)(int *, int))(*v8 + 36))(v8, 2); } else { v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Please wait %i seconds before attempting to sync your account again.", TimeLeft); v10 = 0; v11 = 0; v12 = 0; CString = (const char *)cocos2d::CCString::getCString(v5); v7 = strlen(CString); std::string::__init(&v10, CString, v7); v8 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Too fast", (int)&v10, (ButtonSprite *)"OK", nullptr, 300.0); std::string::~string((int)&v10); } return (*(int (__fastcall **)(int *))(*v8 + 656))(v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source