private static void Postfix() { #if DEBUG Main.Logger.Log($"Wait cache finish after DoSavingAgent"); #endif SaveCacheFactory.WaitAll(); }
private static void Prefix(Enum _em, object[] args) { if (eEvents.LoadingProgress.Equals(_em) && 100 == (int)args[0]) { #if DEBUG Main.Logger.Log($"Loading spends {DateFile_NewDate_Patch.Stopwatch.ElapsedMilliseconds} ms"); #endif SaveCacheFactory.WaitAll(); StateHelper.IsQuickLoad = false; } }