// // GameToolbox::createOnOffSprite from 0x3cf120 to 0x3cf250 (304 bytes) // // 2 xrefs: // > GameToolbox::createOnOffSprite @ 0x3cf26c // > LevelBrowserLayer::init @ 0x4a7a3e // // 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:46:39 +0000 // int __fastcall GameToolbox::createOnOffSprite(cocos2d::CCSprite *a1, const char *a2, int a3, int a4) { int v7; // r6 size_t v8; // r0 CCSpriteWithHue *v9; // r5 cocos2d::CCNode *v10; // r0 int v11; // r4 void (__fastcall *v12)(int, int); // r7 int v13; // r0 float v14; // s16 int v15; // r0 int v17; // [sp+4h] [bp-20h] BYREF _BYTE v18[8]; // [sp+8h] [bp-1Ch] BYREF int v19[3]; // [sp+10h] [bp-14h] BYREF v17 = a3; memset(v19, 0, sizeof(v19)); v7 = cocos2d::CCSprite::createWithSpriteFrameName(a1, a2); v8 = strlen((const char *)a1); std::string::__init(v19, a1, v8); v9 = (CCSpriteWithHue *)CCSpriteGrayscale::createWithSpriteFrameName(v19); std::string::~string((int)v19); (*(void (__fastcall **)(CCSpriteWithHue *, int))(*(_DWORD *)v9 + 456))(v9, a4); (*(void (__fastcall **)(CCSpriteWithHue *, int *))(*(_DWORD *)v9 + 480))(v9, &v17); v10 = (cocos2d::CCNode *)CCSpriteWithHue::setLuminance(v9, 1.15); v11 = cocos2d::CCNode::create(v10); v12 = *(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 160); v13 = (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 164))(v7); v12(v11, v13); v14 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v11 + 164))(v11); v15 = (*(int (__fastcall **)(int))(*(_DWORD *)v11 + 164))(v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, v14 * 0.5, *(float *)(v15 + 4) * 0.5); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v7 + 92))(v7, v18); (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 36))(v7, 1); (*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 228))(v11, v7); (*(void (__fastcall **)(CCSpriteWithHue *, _BYTE *))(*(_DWORD *)v9 + 92))(v9, v18); (*(void (__fastcall **)(CCSpriteWithHue *, int))(*(_DWORD *)v9 + 36))(v9, 2); (*(void (__fastcall **)(int, CCSpriteWithHue *))(*(_DWORD *)v11 + 228))(v11, v9); GameToolbox::setOnOffSprite(v11, (int)a2); return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source