From 346cd757158243cbcc27bc09370d8df4cee7046c Mon Sep 17 00:00:00 2001 From: Soapwood Date: Fri, 2 Aug 2024 09:59:28 +0100 Subject: [PATCH] Fix issue loading config when users have a space in their Windows username. --- VXMusic/LogParser/Model/ConfigurationModel.cs | 3 +-- VXMusicDesktop/VXMusicDesktop.csproj | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/VXMusic/LogParser/Model/ConfigurationModel.cs b/VXMusic/LogParser/Model/ConfigurationModel.cs index 1a1aa9b..8a4bde8 100644 --- a/VXMusic/LogParser/Model/ConfigurationModel.cs +++ b/VXMusic/LogParser/Model/ConfigurationModel.cs @@ -13,8 +13,7 @@ namespace VXMusic.LogParser.VRChat { public class ConfigurationModel { - public const string UserFolderPath = @"%AppData%\..\Local\VirtualXtensions\VXMusic"; - public static string ExpandedUserFolderPath = Environment.ExpandEnvironmentVariables(UserFolderPath); + public static string ExpandedUserFolderPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "VirtualXtensions", "VXMusic"); private static object ConfigMutex = new object(); [Annotation("Polling frequency for individual log file updates.", true, "GENERAL CONFIGURATION")] diff --git a/VXMusicDesktop/VXMusicDesktop.csproj b/VXMusicDesktop/VXMusicDesktop.csproj index 7487c48..ad0b2fb 100644 --- a/VXMusicDesktop/VXMusicDesktop.csproj +++ b/VXMusicDesktop/VXMusicDesktop.csproj @@ -9,7 +9,7 @@ VXLogo.png Images\VXLogoIcon.ico Always - 0.6.5.2 + 0.6.5.3 en VXMusicDesktop VirtualXtensions