/// <summary> /// Sets the base assembly of the ResourceExtractor, so /// resources can be accessed /// </summary> public static void Init() { try { MethodBase method = new StackFrame(1, false).GetMethod(); var declaringType = method.DeclaringType; ResourceExtractor.SetAssembly(declaringType); } catch (Exception e) { ETGModConsole.Log(e.Message); ETGModConsole.Log(e.StackTrace); } }
public static void Init() { FakePrefabHooks.Init(); try { MethodBase method = new StackFrame(1, false).GetMethod(); Type declaringType = method.DeclaringType; ResourceExtractor.SetAssembly(declaringType); } catch (Exception ex) { ETGModConsole.Log(ex.Message, false); ETGModConsole.Log(ex.StackTrace, false); } }