clone melonds settings so they dont persist when canceling

This commit is contained in:
zeromus 2020-04-23 21:20:20 -04:00
parent 49b6a35dfe
commit 8b7f7fe79b
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
{
private MelonSettings _settings = new MelonSettings();
public MelonSettings GetSettings() => _settings;
public MelonSettings GetSettings() => _settings.Clone();
public MelonSyncSettings GetSyncSettings()
{
@ -97,6 +97,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
public class MelonSettings
{
public MelonSettings Clone() => (MelonSettings)MemberwiseClone();
[DisplayName("Screen Layout")]
[Description("Adjusts the layout of the screens")]
public ScreenLayoutKind ScreenLayout { get; set; } = ScreenLayoutKind.Vertical;