From 03d0aeadf1737aae79ac72682fe9e86f7aabb9d8 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Thu, 15 Aug 2024 22:24:56 +0800 Subject: [PATCH] [saco] Implement/match `CGame::GetWorldTime(...)` --- saco/game/game.cpp | 8 ++++++++ saco/game/game.h | 1 + 2 files changed, 9 insertions(+) diff --git a/saco/game/game.cpp b/saco/game/game.cpp index a6808ea..f567162 100644 --- a/saco/game/game.cpp +++ b/saco/game/game.cpp @@ -493,6 +493,14 @@ BOOL CGame::IsModelLoaded(int iModelID) //----------------------------------------------------------- // MATCH +void CGame::GetWorldTime(BYTE* byteHour, BYTE* byteMinute) +{ + *byteMinute = *(PBYTE)0xB70152; + *byteHour = *(PBYTE)0xB70153; +} + +//----------------------------------------------------------- + void CGame::ToggleThePassingOfTime(BYTE byteOnOff) { UnFuck(0x52CF10,1); diff --git a/saco/game/game.h b/saco/game/game.h index cdb4f47..c7ffaff 100644 --- a/saco/game/game.h +++ b/saco/game/game.h @@ -48,6 +48,7 @@ public: void LoadRequestedModels(); BOOL IsModelLoaded(int iModelID); + void GetWorldTime(BYTE* byteHour, BYTE* byteMinute); void ToggleThePassingOfTime(BYTE byteOnOff); void SetWorldWeather(int iWeatherID); int GetWorldWeather();