COlecoHawk: Add SGM memory domain, fix super action controller

This commit is contained in:
alyosha-tas 2018-07-05 16:48:08 -04:00
parent 704e560d59
commit 0e58e36b67
3 changed files with 11 additions and 5 deletions

View File

@ -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 } }
};
}

View File

@ -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());

View File

@ -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;