Skip to content

Commit

Permalink
Work with 0.8.8 also if released...
Browse files Browse the repository at this point in the history
  • Loading branch information
DMagic1 committed Jul 18, 2014
1 parent 1fda43a commit 6aedc52
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions SCANsatkethane/SCANStarter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class SCANStarter : MonoBehaviour
{
private SCANsatKethane SCANK;
private string Version = "0.8.7";

private string Version2 = "0.8.8";

public void Start() {
print("[SCAN Kethane] Searching For Kethane Assembly...");
searching();
Expand All @@ -30,7 +31,8 @@ public void Start() {
private void searching () {
var KAssembly = AssemblyLoader.loadedAssemblies.SingleOrDefault(a => a.assembly.GetName().Name == "Kethane");
if (KAssembly != null) {
if (FileVersionInfo.GetVersionInfo(KAssembly.assembly.Location).ProductVersion == Version) {
if (FileVersionInfo.GetVersionInfo(KAssembly.assembly.Location).ProductVersion == Version || FileVersionInfo.GetVersionInfo(KAssembly.assembly.Location).ProductVersion == Version2)
{
print("[SCAN Kethane] Kethane Assembly Found; Version: " + Version + ", Launching Watcher");
launcher();
}
Expand Down

0 comments on commit 6aedc52

Please sign in to comment.