Browse Source

Removed runtime check of Application.version until I know when I can safely call it

pull/59/head
Anairkoen Schno 3 years ago
parent
commit
96b55eee6e
Signed by: DaNike GPG Key ID: BEFB74D5F3FC4387
2 changed files with 6 additions and 1 deletions
  1. +2
    -1
      IPA.Loader/Loader/PluginComponent.cs
  2. +4
    -0
      IPA.Loader/Utilities/UnityGame.cs

+ 2
- 1
IPA.Loader/Loader/PluginComponent.cs View File

@ -30,7 +30,8 @@ namespace IPA.Loader
if (!initialized)
{
UnityGame.SetMainThread();
UnityGame.EnsureRuntimeGameVersion();
// TODO: figure out when I can call this without breaking Application.version
//UnityGame.EnsureRuntimeGameVersion();
PluginManager.Load();


+ 4
- 0
IPA.Loader/Utilities/UnityGame.cs View File

@ -1,5 +1,6 @@
using IPA.Config;
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Threading;
@ -44,6 +45,9 @@ namespace IPA.Utilities
Logging.Logger.log.Error("Application.version was not found! Cannot check early parsed version");
if (SelfConfig.Debug_.ShowHandledErrorStackTraces_)
Logging.Logger.log.Error(e);
var st = new StackTrace();
Logging.Logger.log.Notice($"{st}");
}
}


Loading…
Cancel
Save