Save & Load Config menu items
This commit is contained in:
parent
e801e31f40
commit
7d0f4f21fe
File diff suppressed because it is too large
Load Diff
|
@ -66,27 +66,27 @@ namespace BizHawk.MultiClient
|
|||
}
|
||||
|
||||
Load += (o, e) =>
|
||||
{
|
||||
AllowDrop = true;
|
||||
DragEnter += FormDragEnter;
|
||||
DragDrop += FormDragDrop;
|
||||
};
|
||||
{
|
||||
AllowDrop = true;
|
||||
DragEnter += FormDragEnter;
|
||||
DragDrop += FormDragDrop;
|
||||
};
|
||||
|
||||
Closing += (o, e) =>
|
||||
Closing += (o, e) =>
|
||||
{
|
||||
CloseGame();
|
||||
if (Global.Config.SaveWindowPosition)
|
||||
{
|
||||
CloseGame();
|
||||
if (Global.Config.SaveWindowPosition)
|
||||
{
|
||||
Global.Config.MainWndx = this.Location.X;
|
||||
Global.Config.MainWndy = this.Location.Y;
|
||||
}
|
||||
else
|
||||
{
|
||||
Global.Config.MainWndx = -1;
|
||||
Global.Config.MainWndy = -1;
|
||||
}
|
||||
ConfigService.Save("config.ini", Global.Config);
|
||||
};
|
||||
Global.Config.MainWndx = this.Location.X;
|
||||
Global.Config.MainWndy = this.Location.Y;
|
||||
}
|
||||
else
|
||||
{
|
||||
Global.Config.MainWndx = -1;
|
||||
Global.Config.MainWndy = -1;
|
||||
}
|
||||
ConfigService.Save("config.ini", Global.Config);
|
||||
};
|
||||
|
||||
ResizeBegin += (o, e) =>
|
||||
{
|
||||
|
@ -1043,5 +1043,17 @@ namespace BizHawk.MultiClient
|
|||
if (!miAutoMinimizeSkipping.Enabled) miAutoMinimizeSkipping.Checked = true;
|
||||
}
|
||||
|
||||
private void saveConfigToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
ConfigService.Save("config.ini", Global.Config);
|
||||
Global.RenderPanel.AddMessage("Saved settings");
|
||||
}
|
||||
|
||||
private void loadConfigToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Global.Config = ConfigService.Load<Config>("config.ini");
|
||||
Global.RenderPanel.AddMessage("Saved loaded");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue