From c3d295774e2cc9ac869d7b87d7707ffcf1a2e6ef Mon Sep 17 00:00:00 2001 From: Coooookies Date: Wed, 13 Dec 2023 20:57:04 +0800 Subject: [PATCH] chore: riotclient-zoom --- Fix-LCU-Window.csproj | 1 - Util/LeagueClientAPI.cs | 9 ++------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Fix-LCU-Window.csproj b/Fix-LCU-Window.csproj index 7f9f133..cdc76cd 100644 --- a/Fix-LCU-Window.csproj +++ b/Fix-LCU-Window.csproj @@ -36,7 +36,6 @@ app.manifest - diff --git a/Util/LeagueClientAPI.cs b/Util/LeagueClientAPI.cs index 978aba3..3dd7d62 100644 --- a/Util/LeagueClientAPI.cs +++ b/Util/LeagueClientAPI.cs @@ -3,7 +3,6 @@ using System.Threading.Tasks; using System.Net.Http; using System.Text.RegularExpressions; -using Newtonsoft.Json; namespace Fix_LCU_Window.Util { @@ -27,13 +26,9 @@ public async Task GetClientZoom() { try { - var Response = await Client.GetAsync("/lol-settings/v1/local/video"); + var Response = await Client.GetAsync("/riotclient/zoom-scale"); Response.EnsureSuccessStatusCode(); - - var ResponseJson = JsonConvert.DeserializeObject(await Response.Content.ReadAsStringAsync()); - var ZoomScale = ResponseJson.data.ZoomScale; - - return ZoomScale; + return double.Parse(await Response.Content.ReadAsStringAsync()); } catch {