Esempio n. 1
0
        public static Format GetFormat(string filename)
        {
            if (RomNES.Validate(filename))
            {
                return(Format.NES);
            }
            else if (RomN64.Validate(filename))
            {
                return(Format.N64);
            }
            else if (RomGBA.Validate(filename))
            {
                return(Format.GBA);
            }
            else if (RomNDS.Validate(filename))
            {
                return(Format.NDS);
            }
            else if (RomSNES.Validate(filename))
            {
                return(Format.SNES_USA);
            }

            return(Format.Indeterminate);
        }
Esempio n. 2
0
 public override void SetRom(string romPath)
 {
     RomPath = romPath;
     Rom     = new RomSNES(romPath);
 }