// // GameLevelManager::onGetLevelCommentsCompleted from 0x4d2b44 to 0x4d2d5c (536 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x4da85a // // 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:50:49 +0000 // int __fastcall GameLevelManager::onGetLevelCommentsCompleted(GameLevelManager *a1, int a2, int a3) { char *v5; // r5 size_t v6; // r0 cocos2d::CCArray *v7; // r7 cocos2d::CCString *v8; // r0 const char *CString; // r0 int v10; // r11 const char *v11; // r7 bool v12; // nf size_t v13; // r0 cocos2d::CCArray *v14; // r9 int result; // r0 cocos2d::CCString *v16; // r0 const char *v17; // r10 size_t v18; // r0 cocos2d::CCString *v19; // r0 const char *v20; // r9 size_t v21; // r0 int v22; // r10 cocos2d::CCObject *LevelComments; // r10 void (__fastcall ***v24)(_DWORD, cocos2d::CCObject *, char *); // r0 int v25; // [sp+4h] [bp-50h] void (__fastcall *v26)(int, int *, char *); // [sp+8h] [bp-4Ch] int v27[3]; // [sp+10h] [bp-44h] BYREF int v28[3]; // [sp+1Ch] [bp-38h] BYREF int v29[3]; // [sp+28h] [bp-2Ch] BYREF int v30[3]; // [sp+34h] [bp-20h] BYREF int v31; // [sp+40h] [bp-14h] BYREF int v32; // [sp+44h] [bp-10h] int v33; // [sp+48h] [bp-Ch] if ( (*(_BYTE *)a3 & 1) != 0 ) v5 = *(char **)(a3 + 8); else v5 = (char *)(a3 + 1); v31 = 0; v32 = 0; v33 = 0; v25 = GameLevelManager::levelIDFromCommentKey(a1, v5, a3, (int)&_stack_chk_guard); v6 = strlen(v5); std::string::__init(&v31, v5, v6); v7 = sub_4C1A88(&v31, "_"); std::string::~string((int)&v31); if ( v7 && cocos2d::CCArray::count(v7) > 4u ) { v8 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v7, 4u); CString = (const char *)cocos2d::CCString::getCString(v8); v10 = atoi(CString); } else { v10 = 0; } GameLevelManager::removeDLFromActive(a1, v5); v31 = 0; v32 = 0; v33 = 0; std::string::__init(&v31, "-1", 2u); v11 = (const char *)sub_4A9CC4((unsigned __int8 *)a2, (unsigned __int8 *)&v31); std::string::~string((int)&v31); if ( v11 ) goto LABEL_13; v12 = (*(_BYTE *)a2 & 1) != 0; if ( (*(_BYTE *)a2 & 1) == 0 ) v11 = (const char *)(a2 + 1); v31 = 0; if ( v12 ) v11 = *(const char **)(a2 + 8); v32 = 0; v33 = 0; v13 = strlen(v11); std::string::__init(&v31, v11, v13); v14 = sub_4C1A88(&v31, "#"); std::string::~string((int)&v31); if ( cocos2d::CCArray::count(v14) <= 1u ) { LABEL_13: result = *((_DWORD *)a1 + 207); if ( result ) return (*(int (__fastcall **)(int, char *))(*(_DWORD *)result + 4))(result, v5); } else { v16 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v14, 0); memset(v27, 0, sizeof(v27)); v17 = (const char *)cocos2d::CCString::getCString(v16); v18 = strlen(v17); std::string::__init(v27, v17, v18); v19 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v14, 1u); v20 = (const char *)cocos2d::CCString::getCString(v19); memset(v28, 0, sizeof(v28)); v21 = strlen(v20); std::string::__init(v28, v20, v21); v22 = *((_DWORD *)a1 + 207); if ( v22 ) { v26 = *(void (__fastcall **)(int, int *, char *))(*(_DWORD *)v22 + 12); std::string::basic_string(v29, (int)v28); v26(v22, v29, v5); std::string::~string((int)v29); } std::string::basic_string(v30, (int)v27); LevelComments = GameLevelManager::createAndGetLevelComments(a1, (int)v30, v25, v10); std::string::~string((int)v30); std::string::basic_string(&v31, (int)v28); GameLevelManager::storeCommentsResult(a1, LevelComments, COERCE_FLOAT(&v31), v5); std::string::~string((int)&v31); v24 = *((void (__fastcall ****)(_DWORD, cocos2d::CCObject *, char *))a1 + 207); if ( v24 ) (**v24)(v24, LevelComments, v5); std::string::~string((int)v28); return std::string::~string((int)v27); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source