Cheats - handle the main emulator opening a new rom or closing the current one
This commit is contained in:
parent
52dbff1606
commit
eccefda314
|
@ -254,6 +254,7 @@ namespace BizHawk.MultiClient
|
|||
RamSearch1.Restart();
|
||||
HexEditor1.Restart();
|
||||
NESPPU1.Restart();
|
||||
Cheats1.Restart();
|
||||
Text = "BizHawk";
|
||||
HandlePlatformMenus();
|
||||
}
|
||||
|
|
|
@ -534,6 +534,7 @@ namespace BizHawk.MultiClient
|
|||
RamSearch1.Restart();
|
||||
HexEditor1.Restart();
|
||||
NESPPU1.Restart();
|
||||
Cheats1.Restart();
|
||||
CurrentlyOpenRom = path;
|
||||
HandlePlatformMenus();
|
||||
return true;
|
||||
|
|
|
@ -13,12 +13,10 @@ namespace BizHawk.MultiClient
|
|||
{
|
||||
public partial class Cheats : Form
|
||||
{
|
||||
//Open/Close rom should start a new cheat list
|
||||
//Implement Options menu settings
|
||||
//Implement Freeze functions in all memory domains
|
||||
//Save - implement (should default to SaveAs if no cheats file)
|
||||
//Restore Window Size should restore column order as well
|
||||
//Save & Load Domain name into .wch file
|
||||
|
||||
int defaultWidth; //For saving the default size of the dialog, so the user can restore if desired
|
||||
int defaultHeight;
|
||||
|
@ -41,6 +39,21 @@ namespace BizHawk.MultiClient
|
|||
return c;
|
||||
}
|
||||
|
||||
private void ClearFields()
|
||||
{
|
||||
NameBox.Text = "";
|
||||
AddressBox.Text = "";
|
||||
ValueBox.Text = "";
|
||||
PopulateMemoryDomainComboBox();
|
||||
AddressBox.MaxLength = GetNumDigits(Global.Emulator.MainMemory.Size - 1);
|
||||
}
|
||||
|
||||
public void Restart()
|
||||
{
|
||||
NewCheatList();
|
||||
ClearFields();
|
||||
}
|
||||
|
||||
public Cheats()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
@ -113,6 +126,7 @@ namespace BizHawk.MultiClient
|
|||
|
||||
private void PopulateMemoryDomainComboBox()
|
||||
{
|
||||
DomainComboBox.Items.Clear();
|
||||
if (Global.Emulator.MemoryDomains.Count > 0)
|
||||
{
|
||||
for (int x = 0; x < Global.Emulator.MemoryDomains.Count; x++)
|
||||
|
|
Loading…
Reference in New Issue