Skip to content

Commit e7923f0

Browse files
arthurkehrwaldfreezy
authored andcommitted
Accept cancellation token in OnInit
1 parent abc366a commit e7923f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
using System.Collections.Generic;
2323
using System.Linq;
2424
using System.Runtime.InteropServices;
25+
using System.Threading;
2526
using System.Threading.Tasks;
2627
using NLog;
2728
using PinMame;
@@ -224,7 +225,7 @@ private void OnDestroy()
224225
_dmdLevels.Clear();
225226
}
226227

227-
public Task OnInit(Player player, TableApi tableApi, BallManager ballManager)
228+
public Task OnInit(Player player, TableApi tableApi, BallManager ballManager, CancellationToken ct)
228229
{
229230
string vpmPath = null;
230231
_ballManager = ballManager;

0 commit comments

Comments
 (0)