diff --git a/BizHawk.Emulation/Util.cs b/BizHawk.Emulation/Util.cs index ef41c4eb72..0c475239eb 100644 --- a/BizHawk.Emulation/Util.cs +++ b/BizHawk.Emulation/Util.cs @@ -638,6 +638,15 @@ namespace BizHawk bptr[i] = (byte)val; } + public static unsafe void memset32(void* ptr, int val, int len) + { + System.Diagnostics.Debug.Assert(len % 4 == 0); + int dwords = len / 4; + int* dwptr = (int*)ptr; + for (int i = 0; i < dwords; i++) + dwptr[i] = val; + } + public static byte[] ReadAllBytes(Stream stream) { const int BUFF_SIZE = 4096; diff --git a/BizHawk.MultiClient/BizHawk.MultiClient.csproj b/BizHawk.MultiClient/BizHawk.MultiClient.csproj index ffe2246277..e02ed1f455 100644 --- a/BizHawk.MultiClient/BizHawk.MultiClient.csproj +++ b/BizHawk.MultiClient/BizHawk.MultiClient.csproj @@ -158,6 +158,8 @@ SoundConfig.cs + + Form @@ -772,6 +774,7 @@ true +