Advertisement
spacechase0

Empty hook crashing, works fine in another mod

Jan 5th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.05 KB | None | 0 0
  1. /* Full exception:
  2. <MiniModLoader> [ERROR] System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  3.   at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
  4.   at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0
  5.   at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00000] in <filename unknown>:0
  6.   at Harmony.HarmonyInstance.PatchAll () [0x00000] in <filename unknown>:0
  7.   at SpikedSwords.Mod.AfterModsLoaded () [0x00000] in <filename unknown>:0
  8.   at spacechase0.MiniModLoader.ApiImpl.Mods.ModManager.Initialize () [0x00000] in <filename unknown>:0
  9. */
  10.  
  11. using Harmony;
  12. using spacechase0.MiniModLoader.Api;
  13. using System;
  14. using System.Collections.Generic;
  15. using System.Linq;
  16. using System.Reflection;
  17. using System.Text;
  18.  
  19. namespace SpikedSwords
  20. {
  21.     [HarmonyPatch(typeof(TextMgr))]
  22.     [HarmonyPatch("Load")]
  23.     public static class TextHook
  24.     {
  25.         public static void Postfix(string str, object ___texts)
  26.         {
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement