Exemple #1
0
 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();
     }
 }
Exemple #2
0
        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 + "\"");
            }
        }
Exemple #3
0
 public void Start()
 {
     loader = gameObject.GetComponent <ModLoader.ModLoader>();
 }