// // GameObject::determineSlopeDirection from 0x44d5f0 to 0x44d726 (310 bytes) // // 11 xrefs: // > PlayLayer::addObject @ 0x400258 // > PlayerObject::unrotateGameplayObject @ 0x442404 // > PlayerObject::rotateGameplayObject @ 0x442590 // > GameObject::getObjectDirection @ 0x44d788 // > LevelEditorLayer::rotationForSlopeNearObject @ 0x460fb8 // > LevelEditorLayer::onPlaytest @ 0x4685b8 // > LevelEditorLayer::addSpecial @ 0x46e4f0 // > EditorUI::createSmartObjectsFromTemplate @ 0x488140 // > EditorUI::addObjectsToSmartTemplate @ 0x48890e // > RotateGameplayGameObject::updateGameplayRotation @ 0x4e98a0 // > GJBaseGameLayer::updateDebugDraw @ 0x58d6ac // // 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 11:48:35 +0000 // int __fastcall GameObject::determineSlopeDirection(GameObject *this) { int v2; // r6 int v3; // r5 float v4; // s15 _BOOL4 v5; // r1 _BOOL4 v6; // r2 _BOOL4 v7; // r3 int result; // r0 int v9; // r3 v2 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 712))(this); v3 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 716))(this); v4 = (float)((int)(*(float (__fastcall **)(GameObject *))(*(_DWORD *)this + 788))(this) % 360); v5 = fabsf(v4) == 180.0; if ( v4 == 90.0 ) { v6 = 1; LABEL_5: v7 = v4 == 270.0; goto LABEL_7; } v6 = v4 == -270.0; if ( v4 != -90.0 ) goto LABEL_5; v7 = 1; LABEL_7: result = 0; *((_BYTE *)this + 944) = 0; if ( v2 ) { if ( v3 ) { if ( v5 ) { LABEL_13: *((_BYTE *)this + 944) = 1; v9 = 0; LABEL_42: *((_DWORD *)this + 237) = v9; return result; } if ( v4 == 0.0 ) { LABEL_25: *((_BYTE *)this + 944) = 1; v9 = 3; goto LABEL_42; } if ( v7 ) { LABEL_29: v9 = 4; goto LABEL_42; } if ( !v6 ) return result; LABEL_33: v9 = 5; goto LABEL_42; } if ( v5 ) { LABEL_17: v9 = 1; goto LABEL_42; } if ( v4 == 0.0 ) { LABEL_21: v9 = 2; goto LABEL_42; } if ( v6 ) { LABEL_37: *((_BYTE *)this + 944) = 1; v9 = 6; goto LABEL_42; } if ( !v7 ) return result; LABEL_41: *((_BYTE *)this + 944) = 1; v9 = 7; goto LABEL_42; } if ( !v3 ) { if ( v4 == 0.0 ) goto LABEL_13; if ( v5 ) goto LABEL_25; if ( v6 ) goto LABEL_29; if ( !v7 ) return result; goto LABEL_33; } if ( v4 == 0.0 ) goto LABEL_17; if ( v5 ) goto LABEL_21; if ( v7 ) goto LABEL_37; if ( v6 ) goto LABEL_41; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source