// // GJDifficultySprite::updateFeatureState from 0x5ddce8 to 0x5dde9a (434 bytes) // // 5 xrefs: // > GJRateLevelLayer::onFeature @ 0x564ac6 // > RateStarsLayer::onFeature @ 0x56917a // > GJDifficultySprite::updateFeatureStateFromLevel @ 0x5ddeee // > SongUsagePopup::buildUsageGrid @ 0x760140 // > RateStarsModLayer::onFeature @ 0x79e49e // // 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:54:13 +0000 // _DWORD *__fastcall GJDifficultySprite::updateFeatureState(_DWORD *result, int a2) { _DWORD *v2; // r4 int v3; // r3 const char *v4; // r1 int v5; // r3 char *v6; // r1 cocos2d::CCSprite *v7; // r0 int v8; // r5 void (__fastcall *v9)(int, _BYTE *); // r6 float v10; // s17 int v11; // r0 cocos2d::CCParticleSystem *v12; // r5 void (__fastcall *v13)(cocos2d::CCParticleSystem *, _BYTE *); // r10 float v14; // s17 int v15; // r0 int v16; // r4 _BYTE v17[8]; // [sp+4h] [bp-24h] BYREF int v18[2]; // [sp+Ch] [bp-1Ch] BYREF cocos2d::CCSprite *v19; // [sp+14h] [bp-14h] int v20[3]; // [sp+18h] [bp-10h] BYREF v2 = result; if ( a2 == result[127] ) return result; v3 = *result; result[127] = a2; result = (_DWORD *)(*(int (**)(void))(v3 + 288))(); if ( !v2[127] ) return result; v18[0] = 0; v18[1] = 0; v19 = nullptr; std::string::__init(v18, "GJ_featuredCoin_001.png", 0x17u); v5 = v2[127]; switch ( v5 ) { case 4: v6 = "GJ_epicCoin3_001.png"; break; case 3: v6 = "GJ_epicCoin2_001.png"; break; case 2: v6 = "GJ_epicCoin_001.png"; break; default: goto LABEL_6; } std::string::assign(v18, v6); LABEL_6: if ( (v18[0] & 1) != 0 ) v7 = v19; else v7 = (cocos2d::CCSprite *)((char *)v18 + 1); v8 = cocos2d::CCSprite::createWithSpriteFrameName(v7, v4); (*(void (__fastcall **)(_DWORD *, int, int))(*v2 + 232))(v2, v8, -2); v9 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 92); v10 = *(float *)(*(int (__fastcall **)(_DWORD *))(*v2 + 164))(v2); v11 = (*(int (__fastcall **)(_DWORD *))(*v2 + 164))(v2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v10 * 0.5, *(float *)(v11 + 4) * 0.5); v9(v8, v17); if ( v2[127] == 4 ) { memset(v20, 0, sizeof(v20)); std::string::__init( v20, "30a-1a1.3a0.2a20a90a0a10a5a20a20a0a0a8a0a0a0a4a1a0a0a0a0a1a0a1a0a1a0a1a1a0a0a0a0a0.784314a0a1a0a1a0a0.27a0a0.27a0a" "0a0a0a0a0a0a0a2a1a0a0a0a0a0a0a0.25a0a0a0a0a0a0a0a0a0a0a0", 0xAAu); v12 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromString((unsigned __int8 *)v20, 0, 0); (*(void (__fastcall **)(_DWORD *, cocos2d::CCParticleSystem *, int))(*v2 + 232))(v2, v12, -1); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v12 + 80))(v12, 1063675494); cocos2d::CCParticleSystem::resetSystem(v12); v13 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _BYTE *))(*(_DWORD *)v12 + 92); v14 = *(float *)(*(int (__fastcall **)(_DWORD *))(*v2 + 164))(v2); v15 = (*(int (__fastcall **)(_DWORD *))(*v2 + 164))(v2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v14 * 0.5, *(float *)(v15 + 4) * 0.5); v13(v12, v17); v16 = 5; do { (*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v12 + 20))(v12, 1041865114); --v16; } while ( v16 ); std::string::~string((int)v20); } return (_DWORD *)std::string::~string((int)v18); }
GD Web Decomp Icon

GD Web Decomp

Raw Source