// // EditorUI::updateDpadStepLabel from 0x6f6c38 to 0x6f6d8e (342 bytes) // // 2 xrefs: // > EditorUI::setCustomMoveStep @ 0x481b70 // > EditorUI::setDpadStep @ 0x6f6e38 // // 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:57:39 +0000 // int __fastcall EditorUI::updateDpadStepLabel(int this) { int v1; // r5 int v2; // r7 char *v3; // r1 char *v4; // r1 cocos2d::CCString *v5; // r0 char *CString; // r0 char *v7; // r1 int v8; // r3 char *v9; // r3 int v10; // t1 int v11; // r1 int v12; // r2 int v13; // r3 int v14; // r3 char *v15; // r0 int v16; // r1 int v17; // [sp+8h] [bp-14h] BYREF int v18; // [sp+Ch] [bp-10h] char *v19; // [sp+10h] [bp-Ch] v1 = this; if ( *(_DWORD *)(this + 1076) ) { v2 = *(_DWORD *)(this + 1060); v17 = 0; v18 = 0; v19 = nullptr; v3 = *((char **)&unk_C749E0 + 5 * v2 + 1); if ( v3 ) { std::string::assign(&v17, v3); } else { v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.3f", nullptr, *(float *)(this + 1080)); CString = (char *)cocos2d::CCString::getCString(v5); std::string::assign(&v17, CString); if ( (v17 & 1) != 0 ) { v7 = v19; v8 = v18; } else { v8 = (int)(unsigned __int8)v17 >> 1; v7 = (char *)&v17 + 1; } v9 = &v7[v8]; while ( v9 != v7 ) { v10 = (unsigned __int8)*--v9; if ( v10 != 48 ) { v11 = v9 - v7; goto LABEL_13; } } v11 = -1; LABEL_13: std::string::erase((unsigned __int8 *)&v17, v11 + 1, 0xFFFFFFFF); v12 = v17 & 1; if ( v12 ) v13 = v18; else v13 = (int)(unsigned __int8)v17 >> 1; v14 = v13 - 1; if ( v12 ) v15 = v19; else v15 = (char *)&v17 + 1; if ( v15[v14] == 46 ) { if ( v12 ) v16 = v18; else v16 = (int)(unsigned __int8)v17 >> 1; std::string::erase((unsigned __int8 *)&v17, v16 - 1, 0xFFFFFFFF); } } if ( (v17 & 1) != 0 ) v4 = v19; else v4 = (char *)&v17 + 1; (*(void (__fastcall **)(_DWORD, char *))(**(_DWORD **)(v1 + 1076) + 464))(*(_DWORD *)(v1 + 1076), v4); (*(void (**)(void))(**(_DWORD **)(v1 + 1076) + 536))(); cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(v1 + 1076), 26.0, 0.45, 0.1); return std::string::~string((int)&v17); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source