// // GameLevelManager::getTimeLeft from 0x4adc38 to 0x4adce8 (176 bytes) // // 16 xrefs: // > InfoLayer::onComment @ 0x53d562 // > InfoLayer::onRefreshComments @ 0x53ea78 // > AccountLayer::onBackup @ 0x58404c // > AccountLayer::onSync @ 0x584170 // > MessagesProfilePage::onUpdate @ 0x5ef678 // > FRequestProfilePage::onUpdate @ 0x5f10ac // > FriendsProfilePage::onUpdate @ 0x5f33e8 // > ProfilePage::onUpdate @ 0x5f653e // > ProfilePage::onComment @ 0x5f6d2a // > LevelLeaderboard::onUpdate @ 0x614ade // > NotificationsPage::onUpdate @ 0x743b9c // > ThreadViewPopup::onLoadEarlier @ 0x7494e2 // > ThreadViewPopup::onRefresh @ 0x749740 // > MessageThreadsPage::onRefresh @ 0x7533fa // > ThreadSearchPopup::onSearch @ 0x7536d6 // > LevelPickerPopup::doPageRequest @ 0x75ac50 // // 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:50:00 +0000 // int __fastcall GameLevelManager::getTimeLeft(GameLevelManager *this, const char *a2, float a3) { double v3; // d0 int v6; // r7 size_t v7; // r0 cocos2d::CCString *v8; // r6 float v9; // r1 double v10; // d8 float v11; // r2 int v12; // r3 double v13; // d7 double v14; // d0 double v15; // d0 int v18[3]; // [sp+8h] [bp-14h] BYREF v6 = *((_DWORD *)this + 172); memset(v18, 0, sizeof(v18)); v7 = strlen(a2); std::string::__init(v18, a2, v7); v8 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v6, v18); std::string::~string((int)v18); if ( !v8 ) return 0; LODWORD(v10) = cocos2d::CCString::doubleValue(v8); *((float *)&v10 + 1) = v9; sub_4A9988(SLODWORD(v10), v9, v11, v12); v13 = a3; v14 = v3 - v10; if ( v14 > a3 ) v15 = 0.0; else v15 = v13 - v14; if ( v15 > v13 ) return (int)0.0; return (int)v15; }
GD Web Decomp Icon

GD Web Decomp

Raw Source