update libmelonDS.dll with hi-res support, and allow changing that setting
does not display properly yet
This commit is contained in:
parent
28bc772580
commit
c958afceb0
|
@ -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.
Loading…
Reference in New Issue