public static bool DetectConfig(Mod mod) { if (ModFeaturesHelpers.GetConfigFilePathProp(mod) == null) { return(false); } if (ModFeaturesHelpers.GetConfigFileLoadMethod(mod) == null) { return(false); } return(true); }
//////////////// public static string GetConfigRelativePath(Mod mod) { var self = ModHelpersMod.Instance.ModFeaturesHelpers; if (!self.ConfigMods.ContainsKey(mod.Name)) { return(null); } PropertyInfo configPathField = ModFeaturesHelpers.GetConfigFilePathProp(mod); return((string)configPathField.GetValue(null)); }