From c60aa0775f906e0cf456169e2b874526db5fab2f Mon Sep 17 00:00:00 2001 From: shukenmg <18000205+shukenmg@users.noreply.github.com> Date: Fri, 18 Sep 2020 15:59:58 +0800 Subject: [PATCH] Fixes #519 (#520) Make sure to delete the settings file first. --- BetterJoyForCemu/Config.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BetterJoyForCemu/Config.cs b/BetterJoyForCemu/Config.cs index 790c2f2..6dc5918 100644 --- a/BetterJoyForCemu/Config.cs +++ b/BetterJoyForCemu/Config.cs @@ -108,8 +108,8 @@ namespace BetterJoyForCemu { if (i == 0) space = ""; caliStr += space + caliData[i].Key + "," + String.Join(",", caliData[i].Value); } - txt[2] = caliStr; - File.WriteAllLines(PATH, txt); + txt[settingsNum] = caliStr; + File.WriteAllLines(PATH, txt); } public static void Save() {