// // cocos2d::CCLayer::setAccelerometerEnabled from 0x7d7490 to 0x7d74c8 (56 bytes) // // 0 xrefs: // // 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 12:00:40 +0000 // cocos2d::CCDirector *__fastcall cocos2d::CCLayer::setAccelerometerEnabled(cocos2d::CCDirector *this, int a2) { cocos2d::CCDirector *v2; // r5 int (*v4)(void); // r3 int v5; // r0 char *v6; // r1 v2 = this; if ( *((unsigned __int8 *)this + 285) != a2 ) { *((_BYTE *)this + 285) = a2; if ( *((_BYTE *)this + 224) ) { v4 = *(int (**)(void))(*(_DWORD *)cocos2d::CCDirector::sharedDirector(this) + 112); v5 = v4(); if ( a2 ) v6 = (char *)v2 + 268; else v6 = nullptr; return (cocos2d::CCDirector *)cocos2d::CCAccelerometer::setDelegate(v5, v6); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source