From b4233b91f5079b478f96a10c20114059a463bee2 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sat, 6 Jan 2024 23:39:04 +0800 Subject: [PATCH] [saco] Implement CNetGame::GetTime --- saco/main.h | 1 + saco/net/netgame.cpp | 5 +++++ saco/net/netgame.h | 3 +++ saco/saco.vcproj | 10 ++++++++++ 4 files changed, 19 insertions(+) diff --git a/saco/main.h b/saco/main.h index 89c3f46..268195e 100644 --- a/saco/main.h +++ b/saco/main.h @@ -24,6 +24,7 @@ typedef struct _GAME_SETTINGS { #include "game/game.h" +#include "../raknet/NetworkTypes.h" #include "../raknet/GetTime.h" #include "net/netgame.h" diff --git a/saco/net/netgame.cpp b/saco/net/netgame.cpp index b226e5d..7a664b0 100644 --- a/saco/net/netgame.cpp +++ b/saco/net/netgame.cpp @@ -17,3 +17,8 @@ CNetGame::CNetGame(PCHAR szHostOrIp, int iPort, // TODO: CNetGame::CNetGame(...) .text:1000B930 } + +DWORD CNetGame::GetTime() +{ + return (DWORD)RakNet::GetTime(); +} diff --git a/saco/net/netgame.h b/saco/net/netgame.h index 6419a86..b1a7e99 100644 --- a/saco/net/netgame.h +++ b/saco/net/netgame.h @@ -47,4 +47,7 @@ private: public: CNetGame(char *a2, int a3, char *a4, char *a5); + + DWORD GetTime(); + }; diff --git a/saco/saco.vcproj b/saco/saco.vcproj index 2e7c128..4f5e26b 100644 --- a/saco/saco.vcproj +++ b/saco/saco.vcproj @@ -257,6 +257,16 @@ RelativePath="..\ttmath\ttmathuint_x86.h"> + + + + + +