Skip to content

Commit 4f7850a

Browse files
jsm174freezy
authored andcommitted
deps: bump pinmame-dotnet and fix initial switches for mm
1 parent 326ba2c commit 4f7850a

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

VisualPinball.Engine.PinMAME.Unity/Runtime/PinMameGamelogicEngine.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ private void GameStarted()
156156
Logger.Info($"[PinMAME] Game started.");
157157
_isRunning = true;
158158

159-
_pinMame.SetSwitch(22, true);
160-
_pinMame.SetSwitch(24, true);
159+
SendInitialSwitches();
161160
}
162161

163162
private void Update()

VisualPinball.Engine.PinMAME/Games/MedievalMadness.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ public class MedievalMadness : Wpc
5050
new GamelogicEngineSwitch("17") { Description = "Right Return Lane" },
5151
new GamelogicEngineSwitch("18") { Description = "Shooter Lane" },
5252

53-
//new GamelogicEngineSwitch("21") { Description = "Slam Tilt" },
53+
new GamelogicEngineSwitch("21") { Description = "Slam Tilt", InputActionHint = InputConstants.ActionSlamTilt },
5454
new GamelogicEngineSwitch("22") { Description = "Coin Door Closed", NormallyClosed = true, InputActionHint = InputConstants.ActionCoinDoorOpenClose },
55-
new GamelogicEngineSwitch("24") { Description = "Always Closed", ConstantHint = SwitchConstantHint.AlwaysOpen},
55+
new GamelogicEngineSwitch("24") { Description = "Always Closed", ConstantHint = SwitchConstantHint.AlwaysClosed},
5656
new GamelogicEngineSwitch("25") { Description = "Right Troll Target" },
5757
new GamelogicEngineSwitch("26") { Description = "Left Return Lane" },
5858
new GamelogicEngineSwitch("27") { Description = "Right Outlane" },
@@ -63,11 +63,11 @@ public class MedievalMadness : Wpc
6363
new GamelogicEngineSwitch("33") { Description = "Trough Ball 2", DeviceHint = "^Trough\\s*\\d?", DeviceItemHint = "2" },
6464
new GamelogicEngineSwitch("34") { Description = "Trough Ball 3", DeviceHint = "^Trough\\s*\\d?", DeviceItemHint = "3" },
6565
new GamelogicEngineSwitch("35") { Description = "Trough Ball 4", DeviceHint = "^Trough\\s*\\d?", DeviceItemHint = "4" },
66-
new GamelogicEngineSwitch("36") { Description = "Left Popper", ConstantHint = SwitchConstantHint.AlwaysClosed },
67-
new GamelogicEngineSwitch("37") { Description = "Castle Gate", ConstantHint = SwitchConstantHint.AlwaysClosed },
66+
new GamelogicEngineSwitch("36") { Description = "Left Popper", ConstantHint = SwitchConstantHint.AlwaysOpen },
67+
new GamelogicEngineSwitch("37") { Description = "Castle Gate", ConstantHint = SwitchConstantHint.AlwaysOpen },
6868
new GamelogicEngineSwitch("38") { Description = "Catapult" },
6969

70-
new GamelogicEngineSwitch("41") { Description = "Moat Enter", ConstantHint = SwitchConstantHint.AlwaysClosed },
70+
new GamelogicEngineSwitch("41") { Description = "Moat Enter", ConstantHint = SwitchConstantHint.AlwaysOpen },
7171
new GamelogicEngineSwitch("44") { Description = "Castle Lock" },
7272
new GamelogicEngineSwitch("45") { Description = "Left Troll (under playfield)" },
7373
new GamelogicEngineSwitch("46") { Description = "Right Troll (under playfield)" },

VisualPinball.Engine.PinMAME/VisualPinball.Engine.PinMAME.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</PropertyGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="PinMame" Version="0.1.0-preview.39" />
19+
<PackageReference Include="PinMame" Version="0.1.0-preview.40" />
2020
<PackageReference Include="PinMame.Native" Version="3.4.0-preview.236" />
2121
<PackageReference Include="VisualPinball.Engine" Version="0.0.1-preview.45" />
2222
</ItemGroup>

0 commit comments

Comments
 (0)