Ejemplo n.º 1
0
        /// <summary>
        /// Returns whether or not a sound with the specified name exists.
        /// </summary>
        public static bool MusicExists(string name)
        {
            if (!name.Contains('/'))
            {
                return(false);
            }
            SplitName(name, out string modName, out string subName);
            Mod mod = ModLoader.GetMod(modName);

            return(mod != null && mod.MusicExists(subName));
        }