//////////////// public static bool DetectGithub(Mod mod) { if (ModMetaDataManager.GetGithubUserNameProp(mod) == null) { return(false); } if (ModMetaDataManager.GetGitubProjectNameProp(mod) == null) { return(false); } return(true); }
public static string GetGithubProjectName(Mod mod) { var self = HamstarHelpersMod.Instance.ModMetaDataManager; if (!self.GithubMods.ContainsKey(mod.Name)) { return(null); } PropertyInfo git_proj_prop = ModMetaDataManager.GetGitubProjectNameProp(mod); return((string)git_proj_prop.GetValue(null)); }