C64 - Pass in extension to the core
This commit is contained in:
parent
cc4c0ed693
commit
c0c3c36e87
|
@ -9,7 +9,7 @@ namespace BizHawk.Emulation.Computers.Commodore64
|
||||||
{
|
{
|
||||||
public partial class C64 : IEmulator
|
public partial class C64 : IEmulator
|
||||||
{
|
{
|
||||||
public C64(GameInfo game, byte[] rom)
|
public C64(GameInfo game, byte[] rom, string romextension)
|
||||||
{
|
{
|
||||||
videoProvider = new MyVideoProvider(this);
|
videoProvider = new MyVideoProvider(this);
|
||||||
SetupMemoryDomains();
|
SetupMemoryDomains();
|
||||||
|
|
|
@ -1646,7 +1646,7 @@ namespace BizHawk.MultiClient
|
||||||
nextEmulator = a78;
|
nextEmulator = a78;
|
||||||
break;
|
break;
|
||||||
case "C64":
|
case "C64":
|
||||||
C64 c64 = new C64(game, rom.RomData); //TODO: need to load in BIOSes?
|
C64 c64 = new C64(game, rom.RomData, rom.Extension); //TODO: need to load in BIOSes?
|
||||||
nextEmulator = c64;
|
nextEmulator = c64;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@ namespace BizHawk.MultiClient
|
||||||
public byte[] RomData;
|
public byte[] RomData;
|
||||||
public byte[] FileData;
|
public byte[] FileData;
|
||||||
public GameInfo GameInfo;
|
public GameInfo GameInfo;
|
||||||
|
public string Extension;
|
||||||
|
|
||||||
private const int BankSize = 1024;
|
private const int BankSize = 1024;
|
||||||
|
|
||||||
|
@ -22,7 +23,7 @@ namespace BizHawk.MultiClient
|
||||||
|
|
||||||
var stream = file.GetStream();
|
var stream = file.GetStream();
|
||||||
FileData = Util.ReadAllBytes(stream);
|
FileData = Util.ReadAllBytes(stream);
|
||||||
|
Extension = file.Extension;
|
||||||
// if we're offset exactly 512 bytes from a 1024-byte boundary,
|
// if we're offset exactly 512 bytes from a 1024-byte boundary,
|
||||||
// assume we have a header of that size. Otherwise, assume it's just all rom.
|
// assume we have a header of that size. Otherwise, assume it's just all rom.
|
||||||
// Other 'recognized' header sizes may need to be added.
|
// Other 'recognized' header sizes may need to be added.
|
||||||
|
|
Loading…
Reference in New Issue