// // GJBaseGameLayer::resetPlayer from 0x5925f4 to 0x5926ec (248 bytes) // // 3 xrefs: // > PlayLayer::setupHasCompleted @ 0x40a1d6 // > LevelEditorLayer::onPlaytest @ 0x4683d4 // > GJBaseGameLayer::resetLevelVariables @ 0x5b99d4 // // 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:53:06 +0000 // int __fastcall GJBaseGameLayer::resetPlayer(GJBaseGameLayer *this) { int v2; // r0 int v3; // r0 int v4; // r1 int Object; // r0 int v6; // r8 void (__fastcall *v7)(int, _BYTE *); // r9 int v8; // r8 void (__fastcall *v9)(int, _BYTE *); // r9 int result; // r0 _DWORD v11[2]; // [sp+4h] [bp-18h] BYREF _BYTE v12[8]; // [sp+Ch] [bp-10h] BYREF cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 0.0, 105.0); v2 = *((_DWORD *)this + 2680); if ( v2 ) { v3 = (*(int (__fastcall **)(int))(*(_DWORD *)v2 + 96))(v2); cocos2d::CCPoint::operator=(v11, v3); } else { v4 = *(_DWORD *)(*((_DWORD *)this + 521) + 364); if ( v4 > 0 ) { Object = GJBaseGameLayer::tryGetObject((cocos2d::CCDictionary **)this, v4); if ( Object ) { (*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)Object + 680))(v12, Object); cocos2d::CCPoint::operator=(v11, v12); if ( !*(_BYTE *)(*((_DWORD *)this + 521) + 281) ) v11[0] = 0; } } } v6 = *((_DWORD *)this + 519); v7 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 684); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (const cocos2d::CCPoint *)v11); v7(v6, v12); (*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 519) + 644))(*((_DWORD *)this + 519)); v8 = *((_DWORD *)this + 520); v9 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 684); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (const cocos2d::CCPoint *)v11); v9(v8, v12); result = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 520) + 644))(*((_DWORD *)this + 520)); *(_BYTE *)(*((_DWORD *)this + 519) + 2064) = *(_BYTE *)(*((_DWORD *)this + 521) + 381) ^ 1; *(_BYTE *)(*((_DWORD *)this + 520) + 2064) = *(_BYTE *)(*((_DWORD *)this + 521) + 381) ^ 1; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source