// // cocos2d::CCApplication::getTargetPlatform from 0x1001ac1d0 to 0x1001ac220 (80 bytes) // // 2 xrefs: // > @ 0x1007aebf8 // > @ 0x1007d2798 // // 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 // cocos2d::TargetPlatform __fastcall cocos2d::CCApplication::getTargetPlatform(cocos2d::CCApplication *a1) { cocos2d::TargetPlatform v1; // w19 v1 = kTargetIphone; if ( (unsigned int)-[UIDevice respondsToSelector:]( +[UIDevice currentDevice](&OBJC_CLASS___UIDevice, "currentDevice"), "respondsToSelector:", "userInterfaceIdiom") ) { if ( (void *)-[UIDevice userInterfaceIdiom]( +[UIDevice currentDevice](&OBJC_CLASS___UIDevice, "currentDevice"), "userInterfaceIdiom") == (void *)1 ) return kTargetIpad; else return kTargetIphone; } return v1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source