// // GJMapPack::create from 0x3c9b70 to 0x3c9dec (636 bytes) // // 1 xrefs: // > GameLevelManager::createAndGetMapPacks @ 0x3c9e7c // // 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 // GJMapPack *GJMapPack::create() { cocos2d::CCDictionary *v0; // r0 cocos2d::CCDictionary *v1; // r5 cocos2d::CCString *v2; // r0 cocos2d::CCString *v3; // r0 char *CString; // r0 cocos2d::CCString *v5; // r0 char *v6; // r0 cocos2d::CCString *v7; // r0 cocos2d::CCString *v8; // r0 cocos2d::CCString *v9; // r0 cocos2d::CCString *v10; // r0 char *v11; // r0 cocos2d::CCString *v12; // r0 char *v13; // r0 GJMapPack *v14; // r0 cocos2d::CCNode *v15; // r4 int v17; // [sp+8h] [bp-44h] int v18; // [sp+Ch] [bp-40h] int v19; // [sp+10h] [bp-3Ch] int v20; // [sp+14h] [bp-38h] _BYTE v21[4]; // [sp+18h] [bp-34h] BYREF _BYTE v22[4]; // [sp+1Ch] [bp-30h] BYREF std::string v23; // [sp+20h] [bp-2Ch] BYREF std::string v24; // [sp+24h] [bp-28h] BYREF std::string v25; // [sp+28h] [bp-24h] BYREF std::string v26; // [sp+2Ch] [bp-20h] BYREF _BYTE v27[4]; // [sp+30h] [bp-1Ch] BYREF std::string v28; // [sp+34h] [bp-18h] BYREF _BYTE v29[4]; // [sp+38h] [bp-14h] BYREF std::string v30; // [sp+3Ch] [bp-10h] BYREF int v31; // [sp+40h] [bp-Ch] BYREF int v32; // [sp+44h] [bp-8h] BYREF char *v33; // [sp+48h] [bp-4h] BYREF char *v34; // [sp+4Ch] [bp+0h] BYREF std::string v35; // [sp+50h] [bp+4h] BYREF v1 = v0; sub_776584((int)&v35, (char *)&aO1i2r3e45s7t89[1]); v2 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v35); v17 = cocos2d::CCString::intValue(v2); sub_774008(&v35); sub_776584((int)&v35, (char *)&aO1i2r3e45s7t89[3]); v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v35); CString = (char *)cocos2d::CCString::getCString(v3); sub_776584((int)v21, CString); sub_774008(&v35); sub_776584((int)&v23, (char *)&aO1i2r3e45s7t89[5]); v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v23); v6 = (char *)cocos2d::CCString::getCString(v5); sub_776584((int)v22, v6); sub_774008(&v23); sub_776584((int)&v24, (char *)&aO1i2r3e45s7t89[7]); v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v24); v18 = cocos2d::CCString::intValue(v7); sub_774008(&v24); sub_776584((int)&v25, (char *)&aO1i2r3e45s7t89[8]); v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v25); v19 = cocos2d::CCString::intValue(v8); sub_774008(&v25); sub_776584((int)&v26, "6"); v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v26); v20 = cocos2d::CCString::intValue(v9); sub_774008(&v26); sub_776584((int)&v28, (char *)&aO1i2r3e45s7t89[10]); v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v28); v11 = (char *)cocos2d::CCString::getCString(v10); sub_776584((int)v27, v11); sub_774008(&v28); sub_776584((int)&v30, (char *)&aO1i2r3e45s7t89[12]); v12 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v1, &v30); v13 = (char *)cocos2d::CCString::getCString(v12); sub_776584((int)v29, v13); v14 = (GJMapPack *)sub_774008(&v30); v15 = GJMapPack::create(v14); v15[1].m_uID = v17; sub_775C20(&v31, v21); sub_775D40(&v15[1].m_uAutoReleaseCount, &v31); sub_774008(&v31); v15[1].m_nTag = v18; v15[1].m_uReference = v19; v15[1].m_nLuaID = v20; sub_775C20(&v32, v22); sub_775D40(&v15[1].m_eObjType, &v32); sub_774008(&v32); sub_775C20(&v33, v22); GJMapPack::parsePackLevels((int)v15, &v33); sub_774008(&v33); sub_775C20(&v34, v27); sub_775C20(&v35, v29); GJMapPack::parsePackColors((int)v15, &v34, (char **)&v35); sub_774008(&v35); sub_774008(&v34); sub_774008(v29); sub_774008(v27); sub_774008(v22); sub_774008(v21); return (GJMapPack *)v15; }
GD Web Decomp Icon

GD Web Decomp

Raw Source