// // MoreVideoOptionsLayer::onApplyFPS from 0x533b54 to 0x533c68 (276 bytes) // // 0 xrefs: // // 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:52:06 +0000 // int __fastcall MoreVideoOptionsLayer::onApplyFPS(MoreVideoOptionsLayer *this, cocos2d::CCObject *a2) { const char *v3; // r0 double v4; // r0 cocos2d::CCString *v5; // r0 float v6; // s16 const char *v7; // r1 float v8; // r0 cocos2d::CCString *v9; // r0 char *CString; // r0 int v11; // r7 GameManager *v12; // r0 float *v13; // r0 GameManager *v14; // r0 int v16[3]; // [sp+4h] [bp-20h] BYREF int v17[3]; // [sp+10h] [bp-14h] BYREF CCTextInputNode::getString((CCTextInputNode *)v17, *((_DWORD *)this + 137)); if ( (v17[0] & 1) != 0 ) v3 = (const char *)v17[2]; else v3 = (char *)v17 + 1; v4 = atof(v3); v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.03f", (const char *)HIDWORD(v4), v4); v6 = COERCE_FLOAT(cocos2d::CCString::floatValue(v5)); std::string::~string((int)v17); memset(v16, 0, sizeof(v16)); if ( v6 < 60.0 ) v6 = 60.0; if ( floorf(v6) == v6 ) { v8 = floorf(v6); v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)(int)v8); } else { v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.03f", v7, v6); } CString = (char *)cocos2d::CCString::getCString(v9); std::string::assign(v16, CString); v11 = *((_DWORD *)this + 137); std::string::basic_string(v17, (int)v16); CCTextInputNode::setString(v11, (int)v17); v12 = (GameManager *)std::string::~string((int)v17); v13 = (float *)GameManager::sharedState(v12); v13[221] = v6; v14 = (GameManager *)GameManager::sharedState((GameManager *)v13); GameManager::updateCustomFPS(v14); return std::string::~string((int)v16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source