//////////////// 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 GetGithubUserName(Mod mod) { var self = HamstarHelpersMod.Instance.ModMetaDataManager; if (!self.GithubMods.ContainsKey(mod.Name)) { return(null); } PropertyInfo git_user_prop = ModMetaDataManager.GetGithubUserNameProp(mod); return((string)git_user_prop.GetValue(null)); }