public static bool DetectConfig(Mod mod)
 {
     if (ModMetaDataManager.GetConfigFilePathProp(mod) == null)
     {
         return(false);
     }
     if (ModMetaDataManager.GetConfigFileLoadMethod(mod) == null)
     {
         return(false);
     }
     return(true);
 }
        ////////////////

        public static string GetConfigRelativePath(Mod mod)
        {
            var self = HamstarHelpersMod.Instance.ModMetaDataManager;

            if (!self.ConfigMods.ContainsKey(mod.Name))
            {
                return(null);
            }

            PropertyInfo config_path_field = ModMetaDataManager.GetConfigFilePathProp(mod);

            return((string)config_path_field.GetValue(null));
        }