clean up some warnings
This commit is contained in:
parent
aaf4d39b58
commit
5ddd9e097b
|
@ -80,7 +80,7 @@ namespace BizHawk.Client.Common
|
|||
"readbyterange",
|
||||
"Reads the address range that starts from address, and is length long. Returns the result into a table of key value pairs (where the address is the key)."
|
||||
)]
|
||||
public new LuaTable ReadByteRange(int addr, int length)
|
||||
public LuaTable ReadByteRange(int addr, int length)
|
||||
{
|
||||
return base.ReadByteRange(addr, length);
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ namespace BizHawk.Client.Common
|
|||
"writebyterange",
|
||||
"Writes the given values to the given addresses as unsigned bytes"
|
||||
)]
|
||||
public new void WriteByteRange(LuaTable memoryblock)
|
||||
public void WriteByteRange(LuaTable memoryblock)
|
||||
{
|
||||
base.WriteByteRange(memoryblock);
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ namespace BizHawk.Client.Common
|
|||
"readfloat",
|
||||
"Reads the given address as a 32-bit float value from the main memory domain with th e given endian"
|
||||
)]
|
||||
public new float ReadFloat(int addr, bool bigendian)
|
||||
public float ReadFloat(int addr, bool bigendian)
|
||||
{
|
||||
return base.ReadFloat(addr, bigendian);
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ namespace BizHawk.Client.Common
|
|||
"writefloat",
|
||||
"Writes the given 32-bit float value to the given address and endian"
|
||||
)]
|
||||
public new void WriteFloat(int addr, double value, bool bigendian)
|
||||
public void WriteFloat(int addr, double value, bool bigendian)
|
||||
{
|
||||
base.WriteFloat(addr, value, bigendian);
|
||||
}
|
||||
|
|
|
@ -135,11 +135,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
i = 0;
|
||||
}
|
||||
|
||||
if (button == "Pointer Pressed")
|
||||
{
|
||||
int zzz = 9;
|
||||
}
|
||||
|
||||
if (categoryLabels.ContainsKey(button))
|
||||
categoryBuckets[categoryLabels[button]].Add(button);
|
||||
else buckets[i].Add(button);
|
||||
|
|
|
@ -79,7 +79,6 @@
|
|||
this.Controls.Add(this.ButtonNameLabel);
|
||||
this.Name = "BotControlsRow";
|
||||
this.Size = new System.Drawing.Size(350, 29);
|
||||
this.Load += new System.EventHandler(this.BotControlsRow_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.ProbabilityUpDown)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.ProbabilitySlider)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
|
|
@ -26,25 +26,26 @@ namespace BizHawk.Client.EmuHawk
|
|||
set { ProbabilityUpDown.Value = (decimal)value; }
|
||||
}
|
||||
|
||||
private void BotControlsRow_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ProbabilityUpDown_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
_programmaticallyChangingValues = true;
|
||||
ProbabilitySlider.Value = (int)ProbabilityUpDown.Value;
|
||||
ChangedCallback();
|
||||
_programmaticallyChangingValues = false;
|
||||
if (!_programmaticallyChangingValues)
|
||||
{
|
||||
_programmaticallyChangingValues = true;
|
||||
ProbabilitySlider.Value = (int)ProbabilityUpDown.Value;
|
||||
ChangedCallback();
|
||||
_programmaticallyChangingValues = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void ProbabilitySlider_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
_programmaticallyChangingValues = true;
|
||||
ProbabilityUpDown.Value = ProbabilitySlider.Value;
|
||||
ChangedCallback();
|
||||
_programmaticallyChangingValues = false;
|
||||
if (!_programmaticallyChangingValues)
|
||||
{
|
||||
_programmaticallyChangingValues = true;
|
||||
ProbabilityUpDown.Value = ProbabilitySlider.Value;
|
||||
ChangedCallback();
|
||||
_programmaticallyChangingValues = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void ChangedCallback()
|
||||
|
|
Loading…
Reference in New Issue