/// <summary> /// Returns whether or not a file with the specified name exists. /// </summary> public static bool FileExists(string name) { if (!name.Contains('/')) { return(false); } SplitName(name, out string modName, out string subName); Mod mod = ModLoader.GetMod(modName); return(mod != null && mod.FileExists(subName)); }