// // PlayLayer::storeCheckpoint from 0x401f4a to 0x401fa6 (92 bytes) // // 3 xrefs: // > PlayLayer::loadPersistentCheckpoint @ 0x402bc2 // > PlayLayer::markCheckpoint @ 0x411e9c // > PlayerObject::tryPlaceCheckpoint @ 0x439790 // // 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:47:24 +0000 // unsigned int __fastcall PlayLayer::storeCheckpoint(cocos2d::CCArray **this, CheckpointObject *a2) { int Object; // r0 unsigned int v5; // r6 unsigned int result; // r0 cocos2d::CCArray::addObject(*(this + 2962), a2); Object = CheckpointObject::getObject(a2); (*((void (__fastcall **)(cocos2d::CCArray **, int))*this + 168))(this, Object); if ( *((_BYTE *)this + 10614) ) { if ( *((_BYTE *)this + 10784) ) v5 = 500; else v5 = 1; } else { v5 = 500; } while ( 1 ) { result = cocos2d::CCArray::count(*(this + 2962)); if ( result <= v5 ) break; PlayLayer::removeCheckpoint(this, 1); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source