From 47f473ba3de554c0c85c261390e55558634f8ee4 Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Mon, 15 Jul 2024 02:01:04 +0200 Subject: [PATCH] Update path when downloading profile --- Fika.Core/UI/Patches/MenuTaskBar_Patch.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Fika.Core/UI/Patches/MenuTaskBar_Patch.cs b/Fika.Core/UI/Patches/MenuTaskBar_Patch.cs index 0405c5a4..1a04ced3 100644 --- a/Fika.Core/UI/Patches/MenuTaskBar_Patch.cs +++ b/Fika.Core/UI/Patches/MenuTaskBar_Patch.cs @@ -68,7 +68,7 @@ public static void Postfix(MenuTaskBar __instance) { Singleton.Instance.PlayUISound(EUISoundType.ButtonBottomBarClick); string installDir = Environment.CurrentDirectory; - string fikaDir = installDir + @"/user/fika"; + string fikaDir = installDir + @"\user\fika"; if (!string.IsNullOrEmpty(installDir)) { @@ -79,12 +79,12 @@ public static void Postfix(MenuTaskBar __instance) string profileId = Singleton>.Instance.Session.Profile.ProfileId; - if (File.Exists(@$"{fikaDir}/{profileId}.json")) + if (File.Exists(@$"{fikaDir}\{profileId}.json")) { - File.Copy(@$"{fikaDir}/{profileId}.json", @$"{fikaDir}/{profileId}.json.BAK", true); + File.Copy(@$"{fikaDir}\{profileId}.json", @$"{fikaDir}\{profileId}.json.BAK", true); } - File.WriteAllText(@$"{fikaDir}/{profileId}.json", profile.ToString()); + File.WriteAllText(@$"{fikaDir}\{profileId}.json", profile.ToString()); NotificationManagerClass.DisplayMessageNotification($"Saved profile '{profileId}' to {fikaDir}"); GameObject.Destroy(downloadProfileGameObject);