diff --git a/KK_ReloadCharaListOnChange/KK_ReloadCharaListOnChange.cs b/KK_ReloadCharaListOnChange/KK_ReloadCharaListOnChange.cs index 3f614ac4..b45e0787 100644 --- a/KK_ReloadCharaListOnChange/KK_ReloadCharaListOnChange.cs +++ b/KK_ReloadCharaListOnChange/KK_ReloadCharaListOnChange.cs @@ -292,6 +292,8 @@ private void SceneUnloaded(Scene s) if (s.name == "CustomScene") { InCharaMaker = false; + DoRefresh = false; + EventFromCharaMaker = false; CardTimer.Dispose(); CharacterCardWatcher.Dispose(); CharacterCardEventList.Clear(); @@ -327,12 +329,12 @@ public static void SaveCharaFilePrefix() /// /// When saving the a new coordinate card in game set a flag /// - /// [HarmonyPrefix] + [HarmonyPrefix] [HarmonyPatch(typeof(ChaFileCoordinate), nameof(ChaFileCoordinate.SaveFile), new[] { typeof(string) })] - public static void SaveCoordinateFilePrefix() + public static void SaveCoordinateFilePrefix(string path) { if (InCharaMaker) - if (Singleton.Instance.customCtrl.saveNew == true) + if (!File.Exists(path)) //saving new EventFromCharaMaker = true; } ///