// // GJBaseGameLayer::updatePlatformerTime from 0x483914 to 0x483a2e (282 bytes) // // 2 xrefs: // > PlayLayer::toggleProgressbar @ 0x312972 // > GJBaseGameLayer::updateSpecialLabels @ 0x483a5c // // 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 GJBaseGameLayer::updatePlatformerTime(GJBaseGameLayer *a1) { int PlayTimerMilli; // r0 int v3; // r4 int v4; // r3 GJBaseGameLayer *v5; // r0 int v6; // s15 GJBaseGameLayer_vtbl *v7; // r3 std::unordered_map> *p_m_labelObjects; // r7 cocos2d::CCString *v9; // r0 char *CString; // r0 int **v11; // r0 int *v12; // r4 int *v13; // r10 int v14; // r7 int v15; // t1 char v16[4]; // [sp+8h] [bp-10h] BYREF GameToolbox v17; // [sp+Ch] [bp-Ch] BYREF int v18; // [sp+10h] [bp-8h] BYREF PlayTimerMilli = GJBaseGameLayer::getPlayTimerMilli(a1); v3 = (int)(float)((float)PlayTimerMilli / 1000.0); v4 = PlayTimerMilli - 1000 * v3; v5 = a1; v6 = v4; v7 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; p_m_labelObjects = &a1->m_labelObjects; v7->updateTimeLabel(v5, v3, (int)(float)((float)v6 / 10.0), 1); if ( sub_46C806(p_m_labelObjects, 0xFFFFFFFF) ) { v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i.%02d", (const char *)v3, (int)(float)((float)v6 / 10.0)); CString = (char *)cocos2d::CCString::getCString(v9); sub_776584((int)v16, CString); GameToolbox::intToString(&v17, v3); v18 = -1; v11 = (int **)std::__detail::_Map_base>,std::allocator>>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[]( p_m_labelObjects, (unsigned int *)&v18); v12 = *v11; v13 = v11[1]; while ( v12 != v13 ) { v15 = *v12++; v14 = v15; if ( *(_BYTE *)(v15 + 657) ) { sub_775C20(&v18); LabelGameObject::updateLabel(v14, &v18); sub_774008(&v18); } } sub_774008(&v17); sub_774008(v16); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source