// // AccountLayer::backupAccountFailed from 0x1001667f4 to 0x1001669f4 (512 bytes) // // 2 xrefs: // > sub_100166A50 @ 0x100166a54 // > @ 0x10079c330 // // 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 AccountLayer::backupAccountFailed(AccountLayer *a1, BackupAccountError a2, int a3) { float v6; // s8 float v7; // s9 std::string *v8; // x0 cocos2d::CCString *v9; // x0 const char *CString; // x0 TextArea *m_textArea; // x21 const void **v12; // x8 std::string *v13; // x8 cocos2d::CCString *v14; // x0 char *v15; // x0 std::string *v16; // x8 cocos2d::CCString *v17; // x0 char *v18; // x0 const void *v19[2]; // [xsp+20h] [xbp-90h] BYREF char v20; // [xsp+37h] [xbp-79h] const void *v21[2]; // [xsp+38h] [xbp-78h] BYREF char v22; // [xsp+4Fh] [xbp-61h] const void *v23[2]; // [xsp+50h] [xbp-60h] BYREF char v24; // [xsp+67h] [xbp-49h] std::string v25; // [xsp+68h] [xbp-48h] BYREF ((void (__fastcall *)(cocos2d::CCMenu *, __int64))a1->m_buttonMenu->setEnabled)(a1->m_buttonMenu, 1); ((void (__fastcall *)(AccountLayer *, __int64))a1->setKeypadEnabled)(a1, 1); ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 0); v6 = (float)GJAccountManager::sharedState()->m_gameManagerSize * 0.00000095367; v7 = (float)GJAccountManager::sharedState()->m_localLevelsSize * 0.00000095367; v8 = (std::string *)sub_100009900(&v25, ""); if ( (float)(v6 + v7) <= 32.0 ) { std::string::assign(v8, "Save size is within limits."); } else { v9 = (cocos2d::CCString *)sub_100268F4C("Size: %.2f/32MB. (Profile: %.2f, Levels: %.2f)", (float)(v6 + v7), v6, v7); CString = cocos2d::CCString::getCString(v9); std::string::assign(&v25, CString); } m_textArea = a1->m_textArea; if ( a2 == BackupOrSyncFailed ) { v13 = &v25; if ( (v25.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v13 = (std::string *)v25.__r_.__value_.__r.__words[0]; v14 = (cocos2d::CCString *)sub_100268F4C("Backup failed. Error code: %i\n%s", a3, (const char *)v13); v15 = (char *)cocos2d::CCString::getCString(v14); sub_100009900(v21, v15); TextArea::setString((__int64)m_textArea, v21); if ( v22 < 0 ) { v12 = v21; LABEL_16: operator delete((void *)*v12); } } else { if ( a2 == LoginFailed ) { sub_100009900(v23, "Login failed. Please login to verify your account."); TextArea::setString((__int64)m_textArea, v23); if ( (v24 & 0x80000000) == 0 ) goto LABEL_17; v12 = v23; goto LABEL_16; } v16 = &v25; if ( (v25.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v16 = (std::string *)v25.__r_.__value_.__r.__words[0]; v17 = (cocos2d::CCString *)sub_100268F4C("Backup failed. Please try again later.\n%s", (const char *)v16); v18 = (char *)cocos2d::CCString::getCString(v17); sub_100009900(v19, v18); TextArea::setString((__int64)m_textArea, v19); if ( v20 < 0 ) { v12 = v19; goto LABEL_16; } } LABEL_17: TextArea::colorAllCharactersTo(a1->m_textArea, (cocos2d::ccColor3B)19455); if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v25.__r_.__value_.__l.__data_); }