using System.IO;

namespace PSXPackager
{
    public static class FileExtensionHelper
    {
        public static bool IsCue(string filename)
        {
            return Path.GetExtension(filename).ToLower() == ".cue";
        }

        public static bool IsPbp(string filename)
        {
            return Path.GetExtension(filename).ToLower() == ".pbp";
        }

        public static bool IsArchive(string filename)
        {
            return Path.GetExtension(filename).ToLower() == ".7z" ||
            Path.GetExtension(filename).ToLower() == ".rar" ||
            Path.GetExtension(filename).ToLower() == ".zip";
        }

        public static bool IsBin(string filename)
        {
            return Path.GetExtension(filename).ToLower() == ".bin";
        }

        public static bool IsImageFile(string filename)
        {
            return Path.GetExtension(filename).ToLower() == ".bin" ||
            Path.GetExtension(filename).ToLower() == ".img" ||
            Path.GetExtension(filename).ToLower() == ".iso";
        }

    }
}
