// // SetFolderPopup::valueChanged from 0x1002ae220 to 0x1002ae341 (289 bytes) // // 1 xrefs: // > @ 0x100901348 // // 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 SetFolderPopup::valueChanged(SetFolderPopup *a1) { double v1; // xmm0_8 GameLevelManager *v2; // rax char *v3; // r14 size_t v4; // rax size_t v5; // r15 char *v6; // r12 cocos2d::CCLabelBMFont *m_titleLabel; // rdi char *v8; // rsi size_t v9; // r13 char v10; // [rsp+8h] [rbp-58h] BYREF char v11; // [rsp+9h] [rbp-57h] BYREF char *__s; // [rsp+18h] [rbp-48h] _QWORD __dst[2]; // [rsp+20h] [rbp-40h] BYREF void *__p; // [rsp+30h] [rbp-30h] if ( !a1->m_titleLabel ) return; v2 = GameLevelManager::sharedState(); GameLevelManager::getFolderName(&v10, v2, (unsigned int)a1->m_value, a1->m_isCreated); if ( (v10 & 1) != 0 ) v3 = __s; else v3 = &v11; v4 = strlen(v3); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v1); v5 = v4; if ( v4 >= 0x17 ) { v9 = 26; if ( (v4 | 7) != 0x17 ) v9 = (v4 | 7) + 1; v6 = (char *)operator new(v9); __p = v6; __dst[0] = v9 | 1; __dst[1] = v5; LABEL_15: memmove(v6, v3, v5); v6[v5] = 0; if ( (v10 & 1) == 0 ) goto LABEL_10; goto LABEL_9; } LOBYTE(__dst[0]) = 2 * v4; v6 = (char *)__dst + 1; if ( v4 ) goto LABEL_15; BYTE1(__dst[0]) = 0; if ( (v10 & 1) != 0 ) LABEL_9: operator delete(__s); LABEL_10: m_titleLabel = a1->m_titleLabel; if ( (__dst[0] & 1) != 0 ) v8 = (char *)__p; else v8 = (char *)__dst + 1; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))m_titleLabel->setString)(m_titleLabel, v8); if ( (__dst[0] & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source