You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Fika.Core/FikaPlugin.cs
+54-18Lines changed: 54 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
usingBepInEx.Configuration;
3
3
usingBepInEx.Logging;
4
4
usingComfort.Common;
5
+
usingDiz.Utils;
5
6
usingEFT.UI;
6
7
usingFika.Core.Bundles;
7
8
usingFika.Core.Console;
@@ -48,7 +49,7 @@ namespace Fika.Core
48
49
[BepInDependency("com.SPT.debugging",BepInDependency.DependencyFlags.HardDependency)]// This is used so that we guarantee to load after spt-debugging, that way we can disable its patches
FikaLogger.LogError($"Server version check failed. Expected: >{RequiredServerVersion}, received: {serverVersion}");
284
-
MessageBoxHelper.Show($"Failed to verify server mod version.\nMake sure that the server mod is installed and up-to-date!\nRequired Server Version: {RequiredServerVersion}",
FikaLogger.LogInfo($"Server version check passed. Expected: >{RequiredServerVersion}, received: {serverVersion}");
291
293
}
292
294
}
293
295
296
+
privatevoidShowServerCheckFailMessage()
297
+
{
298
+
MessageBoxHelper.Show($"Failed to verify server mod version.\nMake sure that the server mod is installed and up-to-date!\nRequired Server Version: {RequiredServerVersion}",
299
+
"FIKA ERROR",MessageBoxHelper.MessageBoxType.OK);
300
+
Application.Quit();
301
+
}
302
+
294
303
/// <summary>
295
304
/// Coroutine to ensure all mods are loaded by waiting 5 seconds
Copy file name to clipboardExpand all lines: Fika.Core/Utils/FikaModHandler.cs
+18-6Lines changed: 18 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
usingBepInEx.Bootstrap;
3
3
usingBepInEx.Logging;
4
4
usingComfort.Common;
5
+
usingDiz.Utils;
5
6
usingEFT;
6
7
usingEFT.UI;
7
8
usingFika.Core.Coop.Patches;
@@ -15,6 +16,7 @@
15
16
usingSystem.Collections;
16
17
usingSystem.Collections.Generic;
17
18
usingSystem.IO;
19
+
usingSystem.Threading.Tasks;
18
20
usingUnityEngine;
19
21
usingLogger=BepInEx.Logging.Logger;
20
22
@@ -72,7 +74,7 @@ public void VerifyMods(PatchManager manager)
72
74
{
73
75
FikaPlugin.Instance.FikaLogger.LogError("FikaModHandler::VerifyMods: Response was invalid!");
74
76
MessageBoxHelper.Show($"Failed to verify mods with server.\nMake sure that the server mod is installed!","FIKA ERROR",MessageBoxHelper.MessageBoxType.OK);
75
-
Application.Quit();
77
+
AsyncWorker.RunInMainTread(Application.Quit);
76
78
return;
77
79
}
78
80
@@ -99,7 +101,7 @@ public void VerifyMods(PatchManager manager)
0 commit comments