Apple II - get necessary firmware files from the firmwares system instead of a hardcoded path, added entries to the firmware database for the files I have, no idea what other files are compatible
This commit is contained in:
parent
57fa633a9e
commit
f4140de3f7
|
@ -48,6 +48,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{ "SMS", "Sega Master System" },
|
||||
{ "PSX", "Sony PlayStation" },
|
||||
{ "Lynx", "Atari Lynx" },
|
||||
{ "AppleII", "Apple II" }
|
||||
};
|
||||
|
||||
public string TargetSystem = null;
|
||||
|
|
|
@ -191,6 +191,14 @@ namespace BizHawk.Emulation.Common
|
|||
Option("PSX", "U", psone_45a, FirmwareOptionStatus.Unacceptable);
|
||||
Option("PSX", "E", psone_r5e, FirmwareOptionStatus.Unacceptable);
|
||||
Option("PSX", "J", ps2_50j, FirmwareOptionStatus.Unacceptable);
|
||||
|
||||
Firmware("AppleII", "AppleIIe", "AppleIIe.rom");
|
||||
var appleII_AppleIIe = File("B8EA90ABE135A0031065E01697C4A3A20D51198B", 16384, "AppleIIe.rom", "Apple II e");
|
||||
Option("AppleII", "AppleIIe", appleII_AppleIIe, FirmwareOptionStatus.Acceptable);
|
||||
|
||||
Firmware("AppleII", "DiskII", "DiskII.rom");
|
||||
var appleII_DiskII = File("D4181C9F046AAFC3FB326B381BAAC809D9E38D16", 256, "DiskII.rom", "Disk II");
|
||||
Option("AppleII", "DiskII", appleII_DiskII, FirmwareOptionStatus.Acceptable);
|
||||
}
|
||||
|
||||
//adds a defined firmware ID to the database
|
||||
|
|
|
@ -24,10 +24,12 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII
|
|||
|
||||
_disk1 = rom;
|
||||
|
||||
// TODO: get from Firmware provider
|
||||
_appleIIRom = File.ReadAllBytes("C:\\apple\\AppleIIe.rom");
|
||||
_diskIIRom = File.ReadAllBytes("C:\\apple\\DiskII.rom");
|
||||
|
||||
_appleIIRom = comm.CoreFileProvider.GetFirmware(
|
||||
SystemId, "AppleIIe", true, "The Apple IIe BIOS firmware is required");
|
||||
_diskIIRom = comm.CoreFileProvider.GetFirmware(
|
||||
SystemId, "DiskII", true, "The DiskII firmware is required");
|
||||
|
||||
_machine = new Machine();
|
||||
|
||||
|
|
Loading…
Reference in New Issue