// // GJDifficultySprite::updateFeatureState from 0x1003808d8 to 0x100380ae0 (520 bytes) // // 5 xrefs: // > sub_100089138 @ 0x10008914c // > sub_1002466F0 @ 0x100246714 // > GJDifficultySprite::updateFeatureStateFromLevel @ 0x1003808d0 // > sub_10051F3CC @ 0x10051f3e0 // > sub_10052B0F4 @ 0x10052b230 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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:03:30 +0000 // void __fastcall GJDifficultySprite::updateFeatureState(_DWORD *a1, int a2) { unsigned int v3; // w8 std::string *v4; // x0 void *v5; // x20 float v6; // s8 __int64 v7; // x0 __int64 v8; // x20 float v9; // s8 __int64 v10; // x0 int v11; // w19 float v12; // [xsp+8h] [xbp-58h] BYREF void *__p[2]; // [xsp+10h] [xbp-50h] BYREF char v14; // [xsp+27h] [xbp-39h] std::string v15; // [xsp+28h] [xbp-38h] BYREF if ( a1[149] != a2 ) { a1[149] = a2; (*(void (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 576LL))(a1); if ( a1[149] ) { sub_100009900(&v15, "GJ_featuredCoin_001.png"); v3 = a1[149] - 2; if ( v3 < 3 ) std::string::assign(&v15, off_10093CEE0[v3]); if ( (v15.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v4 = &v15; else v4 = (std::string *)v15.__r_.__value_.__r.__words[0]; v5 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4); (*(void (__fastcall **)(_DWORD *, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v5, 4294967294LL); v6 = *(float *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 328LL))(a1); v7 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 328LL))(a1); sub_1000262BC((float *)__p, v6 * 0.5, *(float *)(v7 + 4) * 0.5); (*(void (__fastcall **)(void *, void **))(*(_QWORD *)v5 + 184LL))(v5, __p); if ( a1[149] == 4 ) { sub_100009900( __p, "30a-1a1.3a0.2a20a90a0a10a5a20a20a0a0a8a0a0a0a4a1a0a0a0a0a1a0a1a0a1a0a1a1a0a0a0a0a0.784314a0a1a0a1a0a0.27a0a0.2" "7a0a0a0a0a0a0a0a0a2a1a0a0a0a0a0a0a0.25a0a0a0a0a0a0a0a0a0a0a0"); v8 = GameToolbox::particleFromString((__int64)__p, 0, 0); (*(void (__fastcall **)(_DWORD *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v8, 0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, 0.9); cocos2d::CCParticleSystem::resetSystem(v8); v9 = *(float *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 328LL))(a1); v10 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 328LL))(a1); sub_1000262BC(&v12, v9 * 0.5, *(float *)(v10 + 4) * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v8 + 184LL))(v8, &v12); v11 = 5; do { (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 40LL))(v8, 0.15); --v11; } while ( v11 ); if ( v14 < 0 ) operator delete(__p[0]); } if ( SHIBYTE(v15.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v15.__r_.__value_.__l.__data_); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source