/// <summary> /// Determines if the given ROM path is valid. /// </summary> /// <param name="path">Absolute path to the ROM to check.</param> /// <returns><c>true</c> if the path is valid and indicates a likely .bin format ROM.</returns> internal static bool IsRomPathValid(string path) { var isValid = IsPathValid(path); if (isValid) { // Ensure that this at least appears to be a valid .bin format ROM. We don't care about .cfg validity. var format = Rom.CheckRomFormat(path); isValid = format == RomFormat.Bin; } return(isValid); }