Ram Search - Fix so that last address of memory domain is included in search (off by 1). Ram Search & Ram Watch - don't say "saved" message if user cancels the SaveFile Dialog box

This commit is contained in:
andres.delikat 2011-02-23 03:09:00 +00:00
parent 3922b6477a
commit 4160f520cc
2 changed files with 3 additions and 4 deletions

View File

@ -28,7 +28,6 @@ namespace BizHawk.MultiClient
//Add button to set copy current values to prev
//After search everything goes pink
//**Limit number of digits in specific value based on data type, allow negative sign if signed values, and hex if hex values!
//8191 addresses? should it be 8192?
string systemID = "NULL";
@ -312,7 +311,7 @@ namespace BizHawk.MultiClient
}
}
for (int x = 0; x < ((Global.Emulator.MainMemory.Size / divisor)-1); x++)
for (int x = 0; x <= ((Global.Emulator.MainMemory.Size / divisor)-1); x++)
{
searchList.Add(new Watch());
searchList[x].address = count + startaddress;
@ -1104,8 +1103,8 @@ namespace BizHawk.MultiClient
{
SaveSearchFile(file.FullName);
currentSearchFile = file.FullName;
OutputLabel.Text = Path.GetFileName(currentSearchFile) + " saved.";
}
OutputLabel.Text = Path.GetFileName(currentSearchFile) + " saved.";
}
private void LoadSearchFromRecent(string file)

View File

@ -489,8 +489,8 @@ namespace BizHawk.MultiClient
{
SaveWatchFile(file.FullName);
currentWatchFile = file.FullName;
MessageLabel.Text = Path.GetFileName(currentWatchFile) + " saved.";
}
MessageLabel.Text = Path.GetFileName(currentWatchFile) + " saved.";
}
private void saveAsToolStripMenuItem_Click(object sender, EventArgs e)