Skip to content

Commit 39a896b

Browse files
mGBA windows build + C# side changes
1 parent 1fb23ac commit 39a896b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Assets/dll/mgba.dll

-325 KB
Binary file not shown.

src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/LibmGBA.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public abstract bool BizAdvance(IntPtr ctx, Buttons keys, int[] vbuff, ref int n
199199
public abstract void BizSetInputCallback(IntPtr ctx, InputCallback cb);
200200

201201
[UnmanagedFunctionPointer(cc)]
202-
public delegate void RumbleCallback([MarshalAs(UnmanagedType.Bool)] bool enable);
202+
public delegate void RumbleCallback(int value);
203203

204204
[BizImport(cc)]
205205
public abstract void BizSetRumbleCallback(IntPtr ctx, RumbleCallback cb);

src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/MGBAHawk.IInputPollable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public partial class MGBAHawk : IInputPollable
1212
public bool IsLagFrame { get; set; }
1313
public IInputCallbackSystem InputCallbacks { get; } = new InputCallbackSystem();
1414

15-
private void SetRumble(bool enable)
16-
=> _controller.SetHapticChannelStrength("Rumble", enable ? int.MaxValue : 0);
15+
private void SetRumble(int value)
16+
=> _controller.SetHapticChannelStrength("Rumble", value);
1717
}
1818
}

0 commit comments

Comments
 (0)