From 5e8c0551fccf36d9e500223c01633d1b9ac80b90 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Wed, 14 Aug 2024 23:17:38 +0800 Subject: [PATCH] [saco] Implement/match `CGame::LoadCollisionFile(...)` --- saco/game/game.cpp | 12 ++++++++++++ saco/game/game.h | 1 + 2 files changed, 13 insertions(+) diff --git a/saco/game/game.cpp b/saco/game/game.cpp index 9cccc0b..dfb8051 100644 --- a/saco/game/game.cpp +++ b/saco/game/game.cpp @@ -1094,3 +1094,15 @@ void CGame::RequestAnimationsAndModels() //----------------------------------------------------------- +void CGame::LoadCollisionFile(char *szFileName) +{ + _asm push 0 + _asm push szFileName + _asm mov edx, 0x5B4E60 + _asm call edx + _asm pop edx + _asm pop edx +} + +//----------------------------------------------------------- + diff --git a/saco/game/game.h b/saco/game/game.h index c2d4049..b020d90 100644 --- a/saco/game/game.h +++ b/saco/game/game.h @@ -133,6 +133,7 @@ public: DWORD GetTimeInMilliseconds(); int GetRwObjectsCount(); void RequestAnimationsAndModels(); + void LoadCollisionFile(char *szFileName); }; //-----------------------------------------------------------