Update to 2nd anniversary update

This commit is contained in:
Mikhail
2024-10-30 16:39:56 -04:00
parent c56c65dbd3
commit 6ca8f00368
5 changed files with 51 additions and 28 deletions

View File

@@ -89,9 +89,15 @@ namespace EpinelPS.Controllers
[HttpPost]
[Route("fleet.repo.game.RepoSVC/GetVersion")]
public string LauncherGetVersion()
public string LauncherGetVersion([FromBody] LauncherVersionRequest? body)
{
Console.WriteLine("Requesting gameId: " + body.game_id);
return System.IO.File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "gameversion.json"));
}
public class LauncherVersionRequest
{
public int game_id {get;set;}
}
}
}