From 85050f69c2b71a76ae454824931e3b01c28f3908 Mon Sep 17 00:00:00 2001 From: Chomp Date: Sun, 12 Jan 2025 20:06:24 +0000 Subject: [PATCH] Implemented `GetValidGameVersion` and `GetServer` --- Core/Controllers/GameController.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Core/Controllers/GameController.cs b/Core/Controllers/GameController.cs index 1bb8a546..85b681cb 100644 --- a/Core/Controllers/GameController.cs +++ b/Core/Controllers/GameController.cs @@ -241,7 +241,15 @@ public class GameController /// public List GetServer(string sessionId) { - throw new NotImplementedException(); + return + [ + new ServerDetails + { + Ip = _httpConfig.BackendIp, + Port = _httpConfig.BackendPort + } + + ]; } /// @@ -266,7 +274,11 @@ public class GameController /// public CheckVersionResponse GetValidGameVersion(string sessionId) { - throw new NotImplementedException(); + return new CheckVersionResponse + { + IsValid = true, + LatestVersion = _coreConfig.CompatibleTarkovVersion + }; } ///