[HugsLib] How to tell if an assembly was already loaded?

Started by Xnope, September 21, 2017, 10:24:32 AM

Previous topic - Next topic

Xnope

Trying to package a core library with my mods, but I don't want to double load it if several of my mods exist in the same mods list. Double loading works fine, the game plays, but a slew of errors come about and I have a hunch it's not very good practice.

Any way to use HugsLib (or just Verse) to detect if an assembly is already loaded, then halt loading it again?
My W.I.P. mods:
Carnivale: GitHub | Forum Post
XnopeCore: GitHub

CannibarRechter

Google for C# AppDomain, and then follow the path of AppDomain.CurrentDomain.GetAssemblies().
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects