Jump to content

How to detect if a specific mod is installed?


Recommended Posts

internal static bool IsModInstalled(string assemblyName)
		{
			Assembly assembly = (from a in assemblies
								 where a.FullName.Contains(assemblyName)
								 select a).FirstOrDefault();
			return assembly != null;
		}

Returns true if the passed in string matches a loaded assembly name.

eg:

Bool IsEveInstalled = IsModInstalled("EveManager");

Sorry for the formatting. This forum software is not phone friendly

Edited by JPLRepo
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...