Remove compare value from Cheat object, for now

This commit is contained in:
andres.delikat 2011-03-17 03:59:03 +00:00
parent fed9c4e30e
commit 599675178b
3 changed files with 7 additions and 13 deletions

View File

@ -10,7 +10,6 @@ namespace BizHawk.MultiClient
public string name { get; set; } public string name { get; set; }
public int address { get; set; } public int address { get; set; }
public int value { get; set; } public int value { get; set; }
public int compare { get; set; }
public bool enabled { get; set; } public bool enabled { get; set; }
public Cheat() public Cheat()
@ -18,7 +17,6 @@ namespace BizHawk.MultiClient
name = ""; name = "";
address = 0; address = 0;
value = 0; value = 0;
compare = 0;
enabled = false; enabled = false;
} }
@ -27,7 +25,6 @@ namespace BizHawk.MultiClient
name = c.name; name = c.name;
address = c.address; address = c.address;
value = c.value; value = c.value;
compare = c.compare;
enabled = c.enabled; enabled = c.enabled;
} }
@ -36,7 +33,6 @@ namespace BizHawk.MultiClient
name = cname; name = cname;
address = addr; address = addr;
value = val; value = val;
compare = comp;
enabled = e; enabled = e;
} }

View File

@ -33,7 +33,7 @@
this.CheatName = new System.Windows.Forms.ColumnHeader(); this.CheatName = new System.Windows.Forms.ColumnHeader();
this.Address = new System.Windows.Forms.ColumnHeader(); this.Address = new System.Windows.Forms.ColumnHeader();
this.Value = new System.Windows.Forms.ColumnHeader(); this.Value = new System.Windows.Forms.ColumnHeader();
this.Compare = new System.Windows.Forms.ColumnHeader(); this.On = new System.Windows.Forms.ColumnHeader();
this.CheatsMenu = new System.Windows.Forms.MenuStrip(); this.CheatsMenu = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -99,7 +99,7 @@
this.CheatName, this.CheatName,
this.Address, this.Address,
this.Value, this.Value,
this.Compare}); this.On});
this.CheatListView.FullRowSelect = true; this.CheatListView.FullRowSelect = true;
this.CheatListView.GridLines = true; this.CheatListView.GridLines = true;
this.CheatListView.ItemCount = 0; this.CheatListView.ItemCount = 0;
@ -125,9 +125,9 @@
// //
this.Value.Text = "Value"; this.Value.Text = "Value";
// //
// Compare // On
// //
this.Compare.Text = "Compare"; this.On.Text = "On";
// //
// CheatsMenu // CheatsMenu
// //
@ -605,7 +605,7 @@
private System.Windows.Forms.ColumnHeader CheatName; private System.Windows.Forms.ColumnHeader CheatName;
private System.Windows.Forms.ColumnHeader Address; private System.Windows.Forms.ColumnHeader Address;
private System.Windows.Forms.ColumnHeader Value; private System.Windows.Forms.ColumnHeader Value;
private System.Windows.Forms.ColumnHeader Compare; private System.Windows.Forms.ColumnHeader On;
private System.Windows.Forms.ToolStripMenuItem duplicateToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem duplicateToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.ToolStrip toolStrip1; private System.Windows.Forms.ToolStrip toolStrip1;

View File

@ -75,11 +75,10 @@ namespace BizHawk.MultiClient
{ {
text = String.Format("{0:2X", cheatList[index].value); text = String.Format("{0:2X", cheatList[index].value);
} }
if (column == 3) //Compare if (column == 3) //Enabled
{ {
text = String.Format("{0:2X", cheatList[index].compare); //TODO
} }
} }
private int GetNumDigits(Int32 i) private int GetNumDigits(Int32 i)
@ -573,7 +572,6 @@ namespace BizHawk.MultiClient
c.name = cheatList[x].name; c.name = cheatList[x].name;
c.address = cheatList[x].address; c.address = cheatList[x].address;
c.value = cheatList[x].value; c.value = cheatList[x].value;
c.compare = cheatList[x].compare;
Changes(); Changes();
cheatList.Add(c); cheatList.Add(c);
DisplayCheatsList(); DisplayCheatsList();