// // GJDifficultySprite::updateFeatureState from 0x1002a4eb0 to 0x1002a511d (621 bytes) // // 6 xrefs: // > RateStarsLayer::onFeature @ 0x100277a33 // > GJDifficultySprite::updateFeatureStateFromLevel @ 0x1002a4e99 // > GJDifficultySprite::updateFeatureStateFromLevel @ 0x1002a4ea4 // > GJRateLevelLayer::onFeature @ 0x100505397 // > sub_100963A90 @ 0x100963ab3 // > sub_100976F40 @ 0x1009770d0 // // This function is hookable on this platform (idp: pc, 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 12:27:55 +0000 // void __fastcall GJDifficultySprite::updateFeatureState(_DWORD *a1, int a2) { int v3; // r14d unsigned int v4; // r14d std::string::pointer data; // rdi char *v6; // r14 __int64 v7; // rax __int64 v8; // r14 __int64 v9; // rax float v10; // [rsp+0h] [rbp-50h] BYREF _QWORD v11[2]; // [rsp+8h] [rbp-48h] BYREF void *__p; // [rsp+18h] [rbp-38h] std::string v13; // [rsp+20h] [rbp-30h] BYREF float v14; // [rsp+3Ch] [rbp-14h] if ( a1[149] != a2 ) { a1[149] = a2; (*(void (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 576LL))(a1); v3 = a1[149]; if ( v3 ) { v13.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x1Au); v13.__r_.__value_.__r.__words[0] = 27; v13.__r_.__value_.__l.__size_ = 23; strcpy(v13.__r_.__value_.__l.__data_, "GJ_featuredCoin_001.png"); v4 = v3 - 2; if ( v4 < 3 ) std::string::assign(&v13, (const std::string::value_type *)&unk_100A076A4 + *((int *)&unk_100A076A4 + v4)); if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 ) data = v13.__r_.__value_.__l.__data_; else data = v13.__r_.__value_.__s.__data_; v6 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)data, 6.120263902060389e257); (*(void (__fastcall **)(_DWORD *, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v6, 4294967294LL); v14 = *(float *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 328LL))(a1); v7 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 328LL))(a1); sub_100278250((float *)v11, v14 * 0.5, *(float *)(v7 + 4) * 0.5); (*(void (__fastcall **)(char *, _QWORD *))(*(_QWORD *)v6 + 184LL))(v6, v11); if ( a1[149] == 4 ) { __p = operator new(0xB0u); v11[0] = 177; v11[1] = 170; strcpy( (char *)__p, "30a-1a1.3a0.2a20a90a0a10a5a20a20a0a0a8a0a0a0a4a1a0a0a0a0a1a0a1a0a1a0a1a1a0a0a0a0a0.784314a0a1a0a1a0a0.27a0a0.2" "7a0a0a0a0a0a0a0a0a2a1a0a0a0a0a0a0a0.25a0a0a0a0a0a0a0a0a0a0a0"); v8 = GameToolbox::particleFromString(v11, 0, 0); (*(void (__fastcall **)(_DWORD *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v8, 0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, 0.89999998); cocos2d::CCParticleSystem::resetSystem(v8); v14 = *(float *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 328LL))(a1); v9 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 328LL))(a1); sub_100278250(&v10, v14 * 0.5, 0.5 * *(float *)(v9 + 4)); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v8 + 184LL))(v8, &v10); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 40LL))(v8, 0.15000001); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 40LL))(v8, 0.15000001); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 40LL))(v8, 0.15000001); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 40LL))(v8, 0.15000001); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 40LL))(v8, 0.15000001); if ( (v11[0] & 1) != 0 ) operator delete(__p); } if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v13.__r_.__value_.__l.__data_); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source