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); }
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"); }
public override void SetRom(string romPath) { RomPath = romPath; Rom = new RomN64(romPath); }