// // applyPositionLimits from 0x85c2d0 to 0x85c46c (412 bytes) // // 2 xrefs: // > getRotateCommandAngleDelta @ 0x863640 // > @ 0x562f8 // // 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 // __int64 __fastcall applyPositionLimits( cocos2d::CCPoint *a1, GameObject *a2, GameObject *a3, GameObject *a4, GameObject *a5) { float x; // s8 float y; // s8 float v11; // s8 float v12; // s8 __int64 v15; // [xsp+60h] [xbp+60h] BYREF if ( a2 ) { x = a1->x; ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))a2->getRealPosition)(&v15, a2); if ( x < *(float *)&v15 ) { ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))a2->getRealPosition)(&v15, a2); LODWORD(a1->x) = v15; } } if ( a3 ) { y = a1->y; ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))a3->getRealPosition)(&v15, a3); if ( y < *((float *)&v15 + 1) ) { ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))a3->getRealPosition)(&v15, a3); a1->y = *((float *)&v15 + 1); } } if ( a4 ) { v11 = a1->x; ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))a4->getRealPosition)(&v15, a4); if ( v11 > *(float *)&v15 ) { ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))a4->getRealPosition)(&v15, a4); LODWORD(a1->x) = v15; } } if ( a5 ) { v12 = a1->y; ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))a5->getRealPosition)(&v15, a5); if ( v12 > *((float *)&v15 + 1) ) { ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))a5->getRealPosition)(&v15, a5); a1->y = *((float *)&v15 + 1); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source