// // GJSmartTemplate::logTemplateStatus from 0x53c8c0 to 0x53c9fa (314 bytes) // // 2 xrefs: // > EditorUI::addObjectsToSmartTemplate @ 0x39c478 // > SetupSmartTemplateLayer::init @ 0x53e5b0 // // 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 // GJSmartTemplate *__fastcall GJSmartTemplate::logTemplateStatus(GJSmartTemplate *this, int a2) { cocos2d::CCDictionary *v2; // r4 cocos2d::CCNode *v3; // r0 cocos2d::CCArray *v4; // r0 int v5; // r4 int v6; // r11 const char *v7; // r9 int v8; // r8 unsigned int v9; // r5 cocos2d::CCString *v10; // r0 char *CString; // r0 cocos2d::CCArray *v12; // r0 _BOOL4 v13; // r0 cocos2d::CCString *v14; // r0 char *v15; // r0 cocos2d::CCArray *v17; // [sp+8h] [bp-24h] cocos2d::CCArray *v18; // [sp+Ch] [bp-20h] int isUnrequired; // [sp+18h] [bp-14h] _BYTE v22[4]; // [sp+24h] [bp-8h] BYREF std::string v23; // [sp+28h] [bp-4h] BYREF int v24; // [sp+2Ch] [bp+0h] BYREF _BYTE v25[4]; // [sp+30h] [bp+4h] BYREF int v26[8]; // [sp+34h] [bp+8h] BYREF v2 = cocos2d::CCDictionary::create(); v3 = cocos2d::CCNode::create(); generateAllBinaryStrings(8, v26, 0, v2, v3); v4 = cocos2d::CCDictionary::allKeys(v2); v5 = 0; v6 = 0; v7 = nullptr; v8 = 0; v9 = 0; v17 = v4; while ( v9 < cocos2d::CCArray::count(v17) ) { v10 = cocos2d::CCArray::stringAtIndex(v17, v9); CString = (char *)cocos2d::CCString::getCString(v10); sub_776584((int)v22, CString); sub_775C20(&v24); prefabKeyFromBinary((int)&v23, (int)&v24); sub_774008(&v24); sub_775C20(v25); isUnrequired = GJSmartTemplate::isUnrequired(a2, (int)v25); sub_774008(v25); v12 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a2 + 52), &v23); v18 = v12; if ( v12 ) v13 = cocos2d::CCArray::count(v12) != 0; else v13 = 0; ++v9; if ( isUnrequired ) { if ( !v13 ) goto LABEL_12; LABEL_10: ++v7; v6 += cocos2d::CCArray::count(v18); goto LABEL_12; } ++v8; if ( v13 ) goto LABEL_10; ++v5; LABEL_12: sub_774008(&v23); sub_774008(v22); } v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Defined: %i / %i(%i), Variations : %i, Required Missing : %i", v7, v8, v9, v6, v5); v15 = (char *)cocos2d::CCString::getCString(v14); sub_776584((int)this, v15); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source