From 9bf83af38dc1ae37ed50f626f53b9ad1b1a3aa64 Mon Sep 17 00:00:00 2001 From: sp00n Date: Thu, 30 May 2024 22:31:48 +0200 Subject: [PATCH] - Comment update --- LiquidctlCLIWrapper.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/LiquidctlCLIWrapper.cs b/LiquidctlCLIWrapper.cs index f93d8ef..a135017 100644 --- a/LiquidctlCLIWrapper.cs +++ b/LiquidctlCLIWrapper.cs @@ -12,7 +12,8 @@ namespace FanControl.Liquidctl { internal static class LiquidctlCLIWrapper { - public static string liquidctlexe = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "liquidctl.exe"); // This should always resolve to the same directory as the FanControl.Liquidctl.dll //TODO extract path to executable to config + public static string liquidctlexe = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "liquidctl.exe"); // This should always resolve to the same directory as the FanControl.Liquidctl.dll + // TODO: extract path to executable to config(?) - Seems to work fine now though internal static IPluginLogger logger; internal static void Initialize(IPluginLogger pluginLogger) @@ -25,14 +26,12 @@ internal static void Initialize(IPluginLogger pluginLogger) internal static List ReadStatus() { Process process = LiquidctlCall($"--json status"); - //return JsonConvert.DeserializeObject>(process.StandardOutput.ReadToEnd()); return ParseStatuses(process.StandardOutput.ReadToEnd()); } internal static List ReadStatus(string address) { Process process = LiquidctlCall($"--json --address {address} status"); - //return JsonConvert.DeserializeObject>(process.StandardOutput.ReadToEnd()); return ParseStatuses(process.StandardOutput.ReadToEnd()); }