COlecoHawk: Add SGM memory domain, fix super action controller
This commit is contained in:
parent
704e560d59
commit
0e58e36b67
|
@ -260,8 +260,8 @@ namespace BizHawk.Emulation.Cores.ColecoVision
|
|||
BoolButtons = BaseBoolDefinition
|
||||
.Select(b => "P" + PortNum + " " + b)
|
||||
.ToList(),
|
||||
FloatControls = { "P" + PortNum + " Disc X"},
|
||||
FloatRanges = { new[] { -360.0f, 0, 360.0f }}
|
||||
FloatControls = { "P" + PortNum + " Disc X", "P" + PortNum + " Disc Y" },
|
||||
FloatRanges = { new[] { -127.0f, 0, 127.0f }, new[] { -127.0f, 0, 127.0f } }
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -37,6 +37,12 @@ namespace BizHawk.Emulation.Cores.ColecoVision
|
|||
}, 1)
|
||||
};
|
||||
|
||||
if (use_SGM)
|
||||
{
|
||||
var SGMRam = new MemoryDomainByteArray("SGM RAM", MemoryDomain.Endian.Little, SGM_high_RAM, true, 1);
|
||||
domains.Add(SGMRam);
|
||||
}
|
||||
|
||||
SyncAllByteArrayDomains();
|
||||
|
||||
memoryDomains = new MemoryDomainList(_byteArrayDomains.Values.Concat(domains).ToList());
|
||||
|
|
|
@ -51,15 +51,15 @@ namespace BizHawk.Emulation.Cores.ColecoVision
|
|||
skipbios = false;
|
||||
}
|
||||
|
||||
use_SGM = _syncSettings.UseSGM;
|
||||
Console.WriteLine("Using the Super Game Module");
|
||||
|
||||
LoadRom(rom, skipbios);
|
||||
SetupMemoryDomains();
|
||||
|
||||
_tracer.Header = _cpu.TraceHeader;
|
||||
ser.Register<IDisassemblable>(_cpu);
|
||||
ser.Register<ITraceable>(_tracer);
|
||||
|
||||
use_SGM = _syncSettings.UseSGM;
|
||||
Console.WriteLine("Using the Super Game Module");
|
||||
}
|
||||
|
||||
private readonly Z80A _cpu;
|
||||
|
|
Loading…
Reference in New Issue