forked from KSP-ModularManagement/ModuleManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStartup.cs
More file actions
24 lines (21 loc) · 740 Bytes
/
Copy pathStartup.cs
File metadata and controls
24 lines (21 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using UnityEngine;
using ModuleManager.Logging;
namespace ModuleManager
{
[KSPAddon(KSPAddon.Startup.Instantly, true)]
internal class Startup : MonoBehaviour
{
private void Start()
{
ModLogger.LOG.force("Version {0}", Version.Text);
#if KSP12
if (KSPe.Util.KSP.Version.Current != KSPe.Util.KSP.Version.FindByVersion(1,2,2))
GUI.UnsupportedKSPAlertBox.Show("1.2.2", KSPe.Util.KSP.Version.Current.ToString());
#else
if (KSPe.Util.KSP.Version.Current < KSPe.Util.KSP.Version.FindByVersion(1,3,0))
GUI.UnsupportedKSPAlertBox.Show(">= 1.3.0", KSPe.Util.KSP.Version.Current.ToString());
#endif
}
}
}