// // EditorSoundBrowserLayer::updatePageLabel from 0x781f50 to 0x782080 (304 bytes) // // 4 xrefs: // > EditorSoundBrowserLayer::loadEditorSoundsFinished @ 0x7820e4 // > EditorSoundBrowserLayer::loadEditorSoundsFailed @ 0x78214e // > EditorSoundBrowserLayer::loadCurrentPage @ 0x78230a // > EditorSoundBrowserLayer::loadCurrentPage @ 0x7823a4 // // 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:59:29 +0000 // _DWORD *__fastcall EditorSoundBrowserLayer::updatePageLabel(_DWORD *this) { _DWORD *v1; // r4 int v2; // r7 cocos2d::CCArray *v3; // r0 const char *v4; // r5 cocos2d::CCArray *v5; // r0 int v6; // r7 char *v7; // r2 char *CString; // r1 char *v9; // r1 cocos2d::CCString *v10; // r0 bool v11; // cc cocos2d::CCArray *v12; // r0 int v13; // r5 int v14; // r0 int v15; // r0 int v16[2]; // [sp+0h] [bp-14h] BYREF char *v17; // [sp+8h] [bp-Ch] v1 = this; if ( !*(this + 185) ) return this; v2 = *(this + 183); v3 = (cocos2d::CCArray *)*(this + 190); if ( !v3 || cocos2d::CCArray::count(v3) ) v4 = (const char *)(10 * v2 + 1); else v4 = nullptr; v5 = (cocos2d::CCArray *)v1[190]; v6 = 10 * v1[183]; if ( v5 ) v5 = (cocos2d::CCArray *)cocos2d::CCArray::count(v5); v7 = (char *)v5 + v6; v16[0] = 0; v16[1] = 0; v17 = nullptr; if ( (char *)v5 + v6 ) { if ( v1[182] > 1u ) v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Page %d", (const char *)(v1[183] + 1), v7); else v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%d-%d of %d", v4, v7, v1[191]); CString = (char *)cocos2d::CCString::getCString(v10); } else { CString = "No results"; } std::string::assign(v16, CString); if ( (v16[0] & 1) != 0 ) v9 = v17; else v9 = (char *)v16 + 1; (*(void (__fastcall **)(_DWORD, char *, int))(*(_DWORD *)v1[185] + 464))(v1[185], v9, LOBYTE(v16[0]) << 31); if ( v1[182] <= 1u ) { v11 = v1[191] <= 10 * v1[183] + 10; goto LABEL_20; } v12 = (cocos2d::CCArray *)v1[190]; if ( v12 ) { v11 = cocos2d::CCArray::count(v12) <= 9; LABEL_20: v13 = !v11; goto LABEL_24; } v13 = 0; LABEL_24: v14 = v1[186]; if ( v14 ) (*(void (__fastcall **)(int, bool))(*(_DWORD *)v14 + 172))(v14, v1[183] > 0); v15 = v1[187]; if ( v15 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 172))(v15, v13); return (_DWORD *)std::string::~string((int)v16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source