From 913cfc3576c76cc8feec8180a5a3046d616d7bf2 Mon Sep 17 00:00:00 2001 From: Mccree Lee Date: Sat, 17 Aug 2024 19:18:37 +0800 Subject: [PATCH] fix: 1.1.0 changes --- Hollow/Services/GameService/GameService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Hollow/Services/GameService/GameService.cs b/Hollow/Services/GameService/GameService.cs index 85c758b..322fb27 100644 --- a/Hollow/Services/GameService/GameService.cs +++ b/Hollow/Services/GameService/GameService.cs @@ -29,8 +29,8 @@ public bool ValidateGameDirectory(string directoryPath) GameVersion = configIniFile.First(line => line.StartsWith("game_version=")).Split("=")[1]; GameBiz = configIniFile.First(line => line.StartsWith("cps=")).Split("=")[1] switch { - "hyp_mihoyo" => GameServer.China, - "hyp_hoyoverse" => GameServer.Global, + "mihoyo" => GameServer.China, + "hoyoverse" => GameServer.Global, _ => throw new ArgumentOutOfRangeException() }; Log.Information("[GameService] Game directory validated ({path})", directoryPath);