diff --git a/Scripter.Plugin/src/Scripter.cs b/Scripter.Plugin/src/Scripter.cs index 58c0fd7..99449ca 100644 --- a/Scripter.Plugin/src/Scripter.cs +++ b/Scripter.Plugin/src/Scripter.cs @@ -69,6 +69,19 @@ private IEnumerator DeferredInit() yield return new WaitForEndOfFrame(); if (this == null) yield break; + while (SuperController.singleton.isLoading) + { + yield return 0; + if (this == null) yield break; + } + + var confirmPanel = SuperController.singleton.errorLogPanel.parent.Find("UserConfirmCanvas"); + while (confirmPanel != null && confirmPanel.childCount > 0) + { + yield return 0; + if (this == null) yield break; + } + if (IsSessionPlugin()) { _syncFolder = $"Saves\\PluginData\\Scripter\\Session\\{name}";