update libmelonDS.dll with hi-res support, and allow changing that setting

does not display properly yet
This commit is contained in:
SuuperW 2020-04-13 12:03:05 -05:00
parent 28bc772580
commit c958afceb0
2 changed files with 9 additions and 0 deletions

View File

@ -33,6 +33,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
public bool PutSettings(MelonSettings o) public bool PutSettings(MelonSettings o)
{ {
_settings = o ?? new MelonSettings(); _settings = o ?? new MelonSettings();
SetScaleFactor(_settings.ScaleFactor);
return false; return false;
} }
@ -79,6 +80,11 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
[DllImport(dllPath)] [DllImport(dllPath)]
private static extern uint GetTimeAtBoot(); private static extern uint GetTimeAtBoot();
[DllImport(dllPath)]
private static extern uint GetScaleFactor();
[DllImport(dllPath)]
private static extern void SetScaleFactor(uint value);
public enum ScreenLayoutKind public enum ScreenLayoutKind
{ {
Vertical, Horizontal, Top, Bottom Vertical, Horizontal, Top, Bottom
@ -101,6 +107,9 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
[DisplayName("Screen Gap")] [DisplayName("Screen Gap")]
public int ScreenGap { get; set; } public int ScreenGap { get; set; }
[DisplayName("Scale Factor")]
public uint ScaleFactor { get; set; }
} }
public class MelonSyncSettings public class MelonSyncSettings

Binary file not shown.