// // SetupCameraRotatePopup::updateEasingRateLabel from 0x1004bdb70 to 0x1004bdc82 (274 bytes) // // 2 xrefs: // > SetupCameraRotatePopup::init @ 0x1004bd2f5 // > SetupCameraRotatePopup::valuePopupClosed @ 0x1004be44a // // 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 SetupCameraRotatePopup::updateEasingRateLabel(SetupCameraRotatePopup *a1) { double m_cameraEasingRate; // xmm0_8 cocos2d::CCString *v2; // rax const char *CString; // r15 size_t v4; // rax std::string::size_type v5; // r14 char *data; // r12 size_t v7; // r13 cocos2d::CCLabelBMFont *m_cameraEasingRateLabel; // rdi std::string::pointer v9; // rsi std::string __dst[2]; // [rsp+0h] [rbp-40h] BYREF m_cameraEasingRate = a1->m_cameraEasingRate; v2 = (cocos2d::CCString *)sub_1007AB580("%.02f", *(_BYTE *)&__dst[0].__r_.__value_.__l.0); CString = cocos2d::CCString::getCString(v2); v4 = strlen(CString); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(m_cameraEasingRate); v5 = v4; if ( v4 >= 0x17 ) { v7 = 26; if ( (v4 | 7) != 0x17 ) v7 = (v4 | 7) + 1; data = (char *)operator new(v7); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v7 + 1; __dst[0].__r_.__value_.__l.__size_ = v5; goto LABEL_8; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v4); data = __dst[0].__r_.__value_.__s.__data_; if ( v4 ) LABEL_8: memmove(data, CString, v5); data[v5] = 0; if ( a1->m_cameraEasingRate == -99999.0 ) std::string::assign(__dst, "-"); m_cameraEasingRateLabel = a1->m_cameraEasingRateLabel; if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) v9 = __dst[0].__r_.__value_.__l.__data_; else v9 = __dst[0].__r_.__value_.__s.__data_; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string::pointer))m_cameraEasingRateLabel->setString)( m_cameraEasingRateLabel, v9); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source