Wire up the Genesis Game Genie Encoder/Decoder to the GPGX core, but disable it since it doesn't seem to work right now
This commit is contained in:
parent
5fc78efe85
commit
2448ad0dda
|
@ -709,10 +709,12 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
GlobalWin.Tools.Load<GBGameGenie>();
|
||||
}
|
||||
else if (Global.Emulator is Genesis)
|
||||
/* adelikat: Genesis decoding doesn't seem to work yet
|
||||
else if (Global.Emulator.SystemId == "GEN")
|
||||
{
|
||||
GlobalWin.Tools.Load<GenGameGenie>();
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
public void LoadTraceLogger()
|
||||
|
|
|
@ -71,7 +71,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
public void UpdateValues()
|
||||
{
|
||||
//Do nothing;
|
||||
// Do nothing;
|
||||
}
|
||||
|
||||
public void Restart()
|
||||
|
@ -191,7 +191,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
LoadConfigSettings();
|
||||
ToggleGameGenieButton();
|
||||
CheatEditor.SetAddEvent(AddCheat);
|
||||
CheatEditor.SetEditEvent(AddCheat); //CheatList.Add is already an upsert, so there is nothing different to handle here
|
||||
CheatEditor.SetEditEvent(AddCheat); // CheatList.Add is already an upsert, so there is nothing different to handle here
|
||||
UpdateDialog();
|
||||
}
|
||||
|
||||
|
@ -200,7 +200,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
GameGenieToolbarSeparator.Visible =
|
||||
LoadGameGenieToolbarItem.Visible =
|
||||
((Global.Emulator is NES)
|
||||
|| (Global.Emulator is Genesis)
|
||||
/*|| (Global.Emulator.SystemId == "GEN")*/
|
||||
|| (Global.Emulator.SystemId == "GB")
|
||||
|| (Global.Game.System == "GG")
|
||||
|| (Global.Emulator is LibsnesCore));
|
||||
|
@ -224,8 +224,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void LoadConfigSettings()
|
||||
{
|
||||
//Size and Positioning
|
||||
_defaultWidth = Size.Width; //Save these first so that the user can restore to its original size
|
||||
// Size and Positioning
|
||||
_defaultWidth = Size.Width;
|
||||
_defaultHeight = Size.Height;
|
||||
|
||||
if (Global.Config.CheatsSaveWindowPosition && Global.Config.CheatsWndx >= 0 && Global.Config.CheatsWndy >= 0)
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.Globalization;
|
|||
using System.Text.RegularExpressions;
|
||||
|
||||
using BizHawk.Client.Common;
|
||||
using BizHawk.Emulation.Cores.Sega.Genesis;
|
||||
//using BizHawk.Emulation.Cores.Sega.Genesis;
|
||||
|
||||
#pragma warning disable 675 //TOOD: fix the potential problem this is masking
|
||||
|
||||
|
@ -21,14 +21,14 @@ namespace BizHawk.Client.EmuHawk
|
|||
public bool UpdateBefore { get { return false; } }
|
||||
public void Restart()
|
||||
{
|
||||
if (!(Global.Emulator is Genesis))
|
||||
if (!(Global.Emulator.SystemId == "GEN"))
|
||||
{
|
||||
Close();
|
||||
}
|
||||
}
|
||||
public void UpdateValues()
|
||||
{
|
||||
if (!(Global.Emulator is Genesis))
|
||||
if (!(Global.Emulator.SystemId == "GEN"))
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
@ -73,7 +73,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
GameGenieTable.Add('9', 31);
|
||||
}
|
||||
|
||||
|
||||
// code is code to be converted, val is pointer to value, add is pointer to address
|
||||
private void GenGGDecode(string code, ref int val, ref int add)
|
||||
{
|
||||
|
@ -240,14 +239,10 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
|
||||
private void addcheatbt_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Global.Emulator is Genesis)
|
||||
{
|
||||
string NAME;
|
||||
int ADDRESS = 0;
|
||||
int VALUE = 0;
|
||||
int romDataDomainIndex = 0;
|
||||
|
||||
|
||||
if (!String.IsNullOrWhiteSpace(cheatname.Text))
|
||||
{
|
||||
|
@ -272,16 +267,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
VALUE = ValueBox.ToRawInt().Value;
|
||||
}
|
||||
|
||||
for (int i = 0; i < Global.Emulator.MemoryDomains.Count; i++)
|
||||
{
|
||||
if (Global.Emulator.MemoryDomains[i].ToString() == "Rom Data")
|
||||
{
|
||||
romDataDomainIndex = i;
|
||||
}
|
||||
}
|
||||
|
||||
Watch watch = Watch.GenerateWatch(
|
||||
Global.Emulator.MemoryDomains[romDataDomainIndex],
|
||||
Global.Emulator.MemoryDomains["MD CART"],
|
||||
ADDRESS,
|
||||
Watch.WatchSize.Word,
|
||||
Watch.DisplayType.Hex,
|
||||
|
@ -294,8 +281,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void autoloadToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Global.Config.GENGGAutoload ^= true;
|
||||
|
|
|
@ -460,7 +460,7 @@ namespace BizHawk.Emulation.Cores.Sega.Genesis
|
|||
addr => VDP.VRAM[addr & 0xFFFF],
|
||||
(addr, value) => VDP.VRAM[addr & 0xFFFF] = value);
|
||||
|
||||
var RomDomain = new MemoryDomain("Rom Data", RomData.Length, MemoryDomain.Endian.Big,
|
||||
var RomDomain = new MemoryDomain("MD CART", RomData.Length, MemoryDomain.Endian.Big,
|
||||
addr => RomData[addr], //adelikat: For speed considerations, I didn't mask this, every tool that uses memory domains is smart enough not to overflow, if I'm wrong let me know!
|
||||
(addr, value) => RomData[addr & (RomData.Length - 1)] = value);
|
||||
|
||||
|
|
Loading…
Reference in New Issue