// // cocos2d::CCLayer::setAccelerometerEnabled from 0x1800527b0 to 0x18005282f (127 bytes) // // 8 xrefs: // > @ 0x1800f3408 // > @ 0x1800f38e8 // > @ 0x1800f3e40 // > @ 0x1800f43c8 // > @ 0x1800f49c0 // > @ 0x1800fd4f8 // > @ 0x18014cf68 // > @ 0x1801bc2d4 // // 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 11:21:45 +0000 // void __fastcall cocos2d::CCLayer::setAccelerometerEnabled(cocos2d::CCLayer *this, char a2) { bool v4; // zf struct cocos2d::CCDirector *v5; // rax __int64 v6; // rdx struct cocos2d::CCAccelerometerDelegate *v7; // rbx cocos2d::CCAccelerometer *v8; // rax cocos2d::CCAccelerometer *v9; // rax if ( a2 != *((_BYTE *)this + 361) ) { v4 = *((_BYTE *)this + 272) == 0; *((_BYTE *)this + 361) = a2; if ( !v4 ) { v5 = cocos2d::CCDirector::sharedDirector(); v6 = *(_QWORD *)v5; if ( a2 ) { v7 = (cocos2d::CCLayer *)((char *)this + 328); if ( !this ) v7 = nullptr; v8 = (cocos2d::CCAccelerometer *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(v6 + 208))(v5); cocos2d::CCAccelerometer::setDelegate(v8, v7); } else { v9 = (cocos2d::CCAccelerometer *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(v6 + 208))(v5); cocos2d::CCAccelerometer::setDelegate(v9, nullptr); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source