//
// cocos2d::CCDirector::setAccelerometer from 0x100484c20 to 0x100484c4f (47 bytes)
//
// 2 xrefs:
// > ??> @ 0x10093d200
// > ??> @ 0x10093d330
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCDirector::setAccelerometer(cocos2d::CCDirector *a1, cocos2d::CCAccelerometer *a2)
{
cocos2d::CCAccelerometer *m_pAccelerometer; // rdi
m_pAccelerometer = a1->m_pAccelerometer;
if ( m_pAccelerometer != a2 )
{
if ( m_pAccelerometer )
operator delete(m_pAccelerometer);
a1->m_pAccelerometer = a2;
}
}