static void Main(string[] args) { try { ModLoader m = new ModLoader(args); m.StartMod(); Thread.Sleep(3500); } catch (Exception e) { Console.WriteLine(String.Format("Error - {0}", e.Message)); Console.WriteLine("Press any key to quit."); Console.ReadKey(); } }
public void Start() { Instance = this; loader = gameObject.GetComponent <ModLoader.ModLoader>(); try { var harmony = HarmonyInstance.Create("human.cptools"); harmony.PatchAll(Assembly.GetExecutingAssembly()); } catch (TypeLoadException e) { Debug.Log(e.Message); Debug.Log(e.StackTrace); loader.Log("\"" + e.Source + "\""); } }
public void Start() { loader = gameObject.GetComponent <ModLoader.ModLoader>(); }