// // PlayLayer::updateTimeLabel from 0x10011e3ac to 0x10011e518 (364 bytes) // // 1 xrefs: // > @ 0x10078fe68 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall PlayLayer::updateTimeLabel(PlayLayer *a1, int a2, int a3, bool a4) { _BOOL4 v4; // w22 __int64 v6; // x20 cocos2d::CCString *v8; // x0 const char *CString; // x0 void **v10; // x1 std::string *v11; // x1 cocos2d::CCDirector *v12; // x0 cocos2d::CCLabelBMFont *m_percentageLabel; // x19 float v14; // s8 std::string::size_type v15; // x20 std::string::size_type size; // x21 __int64 v17; // x0 __n128 v18; // q0 __n128 v19; // q1 std::string::size_type v20; // x8 int v21; // [xsp+18h] [xbp-68h] BYREF void *__p[2]; // [xsp+20h] [xbp-60h] BYREF char v23; // [xsp+37h] [xbp-49h] std::string v24; // [xsp+38h] [xbp-48h] BYREF cocos2d::CCSize WinSize; // 0:kr00_8.8 v4 = a4; v6 = *(_QWORD *)&a2; if ( ((unsigned int (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_percentageLabel->isVisible)(a1->m_percentageLabel) && a1->m_isPlatformer ) { memset(&v24, 0, sizeof(v24)); if ( v4 ) { v8 = (cocos2d::CCString *)sub_100268F4C("%i.%02d", v6, a3); CString = cocos2d::CCString::getCString(v8); std::string::assign(&v24, CString); } else { GameToolbox::intToString(v6, __p); if ( v23 >= 0 ) v10 = __p; else v10 = (void **)__p[0]; std::string::assign(&v24, (const std::string::value_type *)v10); if ( v23 < 0 ) operator delete(__p[0]); } if ( (v24.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v11 = &v24; else v11 = (std::string *)v24.__r_.__value_.__r.__words[0]; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))a1->m_percentageLabel->setString)( a1->m_percentageLabel, v11); v12 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v12); m_percentageLabel = a1->m_percentageLabel; v14 = *(float *)__p; v15 = HIBYTE(v24.__r_.__value_.__r.__words[2]); size = v24.__r_.__value_.__l.__size_; v17 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *, float, float))m_percentageLabel->getPosition)( m_percentageLabel, WinSize.width, WinSize.height); if ( (v15 & 0x80u) == 0LL ) v20 = v15; else v20 = size; v18.n128_f32[0] = (float)(v14 * 0.5) - (float)(5 * v20); v19.n128_u32[0] = *(_DWORD *)(v17 + 4); sub_100022980(v18, v19, &v21); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int *))m_percentageLabel->setPosition)(m_percentageLabel, &v21); if ( SHIBYTE(v24.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v24.__r_.__value_.__l.__data_); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source