From 16d9ccbdadf8838a4a6347c0b230a672878e13f0 Mon Sep 17 00:00:00 2001 From: Coloryr <402067010@qq.com> Date: Sat, 17 Aug 2024 19:53:41 +0800 Subject: [PATCH] =?UTF-8?q?up=20=E5=9C=A8linux=E4=B8=8B=E4=BD=BF=E7=94=A8.?= =?UTF-8?q?ColorMC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ColorMC.Core/CoreMain.cs | 2 +- src/ColorMC.Launcher/Program.cs | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ColorMC.Core/CoreMain.cs b/src/ColorMC.Core/CoreMain.cs index 20c6c9844..660f6a182 100644 --- a/src/ColorMC.Core/CoreMain.cs +++ b/src/ColorMC.Core/CoreMain.cs @@ -14,7 +14,7 @@ namespace ColorMC.Core; public static class ColorMCCore { - public const string TopVersion = "A28"; + public const string TopVersion = "A29"; public const string DateVersion = "20240817"; /// diff --git a/src/ColorMC.Launcher/Program.cs b/src/ColorMC.Launcher/Program.cs index 9a6ac2de1..901fb6541 100644 --- a/src/ColorMC.Launcher/Program.cs +++ b/src/ColorMC.Launcher/Program.cs @@ -101,7 +101,13 @@ public static void Main(string[] args) { if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { - _inputDir = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/ColorMC/"; + _inputDir = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/.ColorMC/"; + + string path = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/ColorMC/"; + if (Directory.Exists(path)) + { + Directory.Move(path, RunDir); + } } else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) {