mod.GetModVersion

Name

mod.GetModVersion – query the version of another mod

Synopsis

version = mod.GetModVersion(mod_name)

Description

If a mod with the given name was registered, then this returns that mod's version string, or "" if the mod registered without a version.

If no mod with the given name was registered, then this returns nil.

Errors

An error is raised if the first argument is not a string; otherwise, no errors are possible.

See Also

mod.GetRegisteredMod

mod.IsModRegistered

mod.RegisterMod