a few mainform simplifications
This commit is contained in:
parent
e3afead876
commit
374964bfb0
|
@ -171,7 +171,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
if (Config.SkipWaterboxIntegrityChecks)
|
if (Config.SkipWaterboxIntegrityChecks)
|
||||||
prefs = CoreComm.CorePreferencesFlags.WaterboxMemoryConsistencyCheck;
|
prefs = CoreComm.CorePreferencesFlags.WaterboxMemoryConsistencyCheck;
|
||||||
|
|
||||||
return new CoreComm(ShowMessageCoreComm, NotifyCoreComm, cfp, prefs);
|
return new CoreComm(ShowMessageCoreComm, AddOnScreenMessage, cfp, prefs);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetImages()
|
void SetImages()
|
||||||
|
@ -2177,7 +2177,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
//HACK
|
//HACK
|
||||||
var _ = typeof(ToolStrip).InvokeMember(
|
var _ = typeof(ToolStrip).InvokeMember(
|
||||||
"ProcessMnemonicInternal",
|
"ProcessMnemonicInternal",
|
||||||
System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.InvokeMethod | System.Reflection.BindingFlags.Instance,
|
BindingFlags.NonPublic | BindingFlags.InvokeMethod | BindingFlags.Instance,
|
||||||
null,
|
null,
|
||||||
MainformMenu,
|
MainformMenu,
|
||||||
new object[] { c });
|
new object[] { c });
|
||||||
|
@ -3377,7 +3377,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
private int? LoadArchiveChooser(HawkFile file)
|
private int? LoadArchiveChooser(HawkFile file)
|
||||||
{
|
{
|
||||||
using var ac = new ArchiveChooser(file);
|
using var ac = new ArchiveChooser(file);
|
||||||
if (ShowDialogAsChild(ac) == DialogResult.OK)
|
if (ShowDialogAsChild(ac).IsOk())
|
||||||
{
|
{
|
||||||
return ac.SelectedMemberIndex;
|
return ac.SelectedMemberIndex;
|
||||||
}
|
}
|
||||||
|
@ -3444,11 +3444,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void NotifyCoreComm(string message)
|
|
||||||
{
|
|
||||||
AddOnScreenMessage(message);
|
|
||||||
}
|
|
||||||
|
|
||||||
private string ChoosePlatformForRom(RomGame rom)
|
private string ChoosePlatformForRom(RomGame rom)
|
||||||
{
|
{
|
||||||
using var platformChooser = new PlatformChooser(Config)
|
using var platformChooser = new PlatformChooser(Config)
|
||||||
|
|
Loading…
Reference in New Issue