mirror of
https://github.com/libretro/Mesen.git
synced 2026-11-13 04:41:44 -10:00
-Several other fixes (bugfixes, refactoring, etc.) -Added a few more features to debugger
28 lines
537 B
C#
28 lines
537 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Mesen.GUI.Forms
|
|
{
|
|
public class BaseConfigForm : Form
|
|
{
|
|
protected override void OnFormClosed(FormClosedEventArgs e)
|
|
{
|
|
if(this.DialogResult == System.Windows.Forms.DialogResult.OK) {
|
|
UpdateConfig();
|
|
ConfigManager.ApplyChanges();
|
|
} else {
|
|
ConfigManager.RejectChanges();
|
|
}
|
|
base.OnFormClosed(e);
|
|
}
|
|
|
|
protected virtual void UpdateConfig()
|
|
{
|
|
}
|
|
}
|
|
}
|