Exemplo 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);
        }
Exemplo n.º 2
0
        protected override void InjectRom()
        {
            if (Directory.Exists(BasePath + "\\content\\rom"))
            {
                Directory.Delete(BasePath + "\\content\\rom", true);
            }
            Directory.CreateDirectory(BasePath + "\\content\\rom");

            RomN64.ToBigEndian(RomPath, BasePath + "\\content\\rom\\U" + Rom.ProductCodeVersion + ".z64");
        }
Exemplo n.º 3
0
 public override void SetRom(string romPath)
 {
     RomPath = romPath;
     Rom     = new RomN64(romPath);
 }