From 1c79afe8c83fe7ac0d266dc2042dc38f712dd264 Mon Sep 17 00:00:00 2001 From: feos Date: Wed, 12 May 2021 23:32:36 +0300 Subject: [PATCH] update mame version --- src/BizHawk.Emulation.Cores/Arcades/MAME/MAME.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/BizHawk.Emulation.Cores/Arcades/MAME/MAME.cs b/src/BizHawk.Emulation.Cores/Arcades/MAME/MAME.cs index ce8a139de3..25b8c9bda2 100644 --- a/src/BizHawk.Emulation.Cores/Arcades/MAME/MAME.cs +++ b/src/BizHawk.Emulation.Cores/Arcades/MAME/MAME.cs @@ -83,7 +83,7 @@ using BizHawk.Emulation.Common; namespace BizHawk.Emulation.Cores.Arcades.MAME { - [PortedCore(CoreNames.MAME, "MAMEDev", "0.230", "https://github.com/mamedev/mame.git", isReleased: false)] + [PortedCore(CoreNames.MAME, "MAMEDev", "0.231", "https://github.com/mamedev/mame.git", isReleased: false)] public partial class MAME : IEmulator, IVideoProvider, ISoundProvider, ISettable, IStatable, IInputPollable { public MAME(string dir, string file, MAME.SyncSettings syncSettings, out string gamename) @@ -94,9 +94,10 @@ namespace BizHawk.Emulation.Cores.Arcades.MAME _gameDirectory = dir; _gameFilename = file; - _mameThread = new Thread(ExecuteMAMEThread); - AsyncLaunchMAME(); + _mameThread = new Thread(ExecuteMAMEThread); + _mameThread.Start(); + _mameStartupComplete.WaitOne(); _syncSettings = (SyncSettings)syncSettings ?? new SyncSettings(); _syncSettings.ExpandoSettings = new ExpandoObject(); @@ -125,12 +126,6 @@ namespace BizHawk.Emulation.Cores.Arcades.MAME private LibMAME.BootCallbackDelegate _bootCallback; private LibMAME.LogCallbackDelegate _logCallback; - private void AsyncLaunchMAME() - { - _mameThread.Start(); - _mameStartupComplete.WaitOne(); - } - private void ExecuteMAMEThread() { // dodge GC