mame: dip switches work

This commit is contained in:
feos 2021-05-23 17:31:20 +03:00
parent 24c74c0e36
commit ebff82b968
3 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ namespace BizHawk.Emulation.Cores.Arcades.MAME
{ {
public static class LibMAME public static class LibMAME
{ {
internal const string dll = "libmamearcade.dll"; // libmamearcade.dll libpacmanshd.dll internal const string dll = "libmamearcade.dll"; // libmamearcade.dll libpacshd.dll
private const CallingConvention cc = CallingConvention.Cdecl; private const CallingConvention cc = CallingConvention.Cdecl;
public enum OutputChannel public enum OutputChannel

View File

@ -28,7 +28,7 @@ namespace BizHawk.Emulation.Cores.Arcades.MAME
public class MAMESyncSettings public class MAMESyncSettings
{ {
public Dictionary<string, string> DriverSettings { get; set; } = new Dictionary<string, string>(); public SortedDictionary<string, string> DriverSettings { get; set; } = new SortedDictionary<string, string>();
public static bool NeedsReboot(MAMESyncSettings x, MAMESyncSettings y) public static bool NeedsReboot(MAMESyncSettings x, MAMESyncSettings y)
{ {
@ -39,7 +39,7 @@ namespace BizHawk.Emulation.Cores.Arcades.MAME
{ {
return new MAMESyncSettings return new MAMESyncSettings
{ {
DriverSettings = new Dictionary<string, string>(DriverSettings) DriverSettings = new SortedDictionary<string, string>(DriverSettings)
}; };
} }
} }

View File

@ -153,7 +153,7 @@ namespace BizHawk.Emulation.Cores.Arcades.MAME
, "-nonvram_save" // prevent dumping non-volatile ram to disk , "-nonvram_save" // prevent dumping non-volatile ram to disk
, "-artpath", "mame\\artwork" // path to load artowrk from , "-artpath", "mame\\artwork" // path to load artowrk from
, "-diff_directory", "mame\\diff" // hdd diffs, whenever stuff is written back to an image , "-diff_directory", "mame\\diff" // hdd diffs, whenever stuff is written back to an image
, "-cfg_directory", ":" // send invalid path to prevent cfg handling , "-cfg_directory", "?" // send invalid path to prevent cfg handling
, "-volume", "-32" // lowest attenuation means mame osd remains silent , "-volume", "-32" // lowest attenuation means mame osd remains silent
, "-output", "console" // print everything to hawk console , "-output", "console" // print everything to hawk console
, "-samplerate", _sampleRate.ToString() // match hawk samplerate , "-samplerate", _sampleRate.ToString() // match hawk samplerate