@@ -38,8 +38,6 @@ public MovieSession(
38
38
?? throw new ArgumentNullException ( $ "{ nameof ( pauseCallback ) } cannot be null.") ;
39
39
_modeChangedCallback = modeChangedCallback
40
40
?? throw new ArgumentNullException ( $ "{ nameof ( modeChangedCallback ) } CannotUnloadAppDomainException be null.") ;
41
-
42
- MultiTrack . RewiringAdapter . Source = MovieIn ;
43
41
}
44
42
45
43
public IMovieConfig Settings { get ; }
@@ -57,8 +55,6 @@ public MovieSession(
57
55
58
56
public IMovieController MovieController { get ; private set ; } = new Bk2Controller ( "" , NullController . Instance . Definition ) ;
59
57
60
- public MultitrackRecorder MultiTrack { get ; } = new MultitrackRecorder ( ) ;
61
-
62
58
public IMovieController GenerateMovieController ( ControllerDefinition definition = null )
63
59
{
64
60
// TODO: expose Movie.LogKey and pass in here
@@ -242,7 +238,6 @@ public void RunQueuedMovie(bool recordMode, IEmulator emulator, IDictionary<stri
242
238
243
239
Movie = _queuedMovie ;
244
240
_queuedMovie = null ;
245
- MultiTrack . Restart ( Movie . Emulator . ControllerDefinition . PlayerCount ) ;
246
241
247
242
Movie . ProcessSavestate ( Movie . Emulator ) ;
248
243
Movie . ProcessSram ( Movie . Emulator ) ;
@@ -258,31 +253,6 @@ public void RunQueuedMovie(bool recordMode, IEmulator emulator, IDictionary<stri
258
253
}
259
254
}
260
255
261
- public void ToggleMultitrack ( )
262
- {
263
- if ( Movie . IsActive ( ) )
264
- {
265
- if ( Settings . VBAStyleMovieLoadState )
266
- {
267
- Output ( "Multi-track can not be used in Full Movie Loadstates mode" ) ;
268
- }
269
- else if ( Movie is ITasMovie )
270
- {
271
- Output ( "Multi-track can not be used with tasproj movies" ) ;
272
- }
273
- else
274
- {
275
- MultiTrack . IsActive ^= true ;
276
- MultiTrack . SelectNone ( ) ;
277
- Output ( MultiTrack . IsActive ? "MultiTrack Enabled" : "MultiTrack Disabled" ) ;
278
- }
279
- }
280
- else
281
- {
282
- Output ( "MultiTrack cannot be enabled while not recording." ) ;
283
- }
284
- }
285
-
286
256
public void StopMovie ( bool saveChanges = true )
287
257
{
288
258
if ( Movie . IsActive ( ) )
@@ -299,8 +269,6 @@ public void StopMovie(bool saveChanges = true)
299
269
300
270
message += "stopped." ;
301
271
302
- MultiTrack . Restart ( 1 ) ;
303
-
304
272
var result = Movie . Stop ( saveChanges ) ;
305
273
if ( result )
306
274
{
@@ -347,28 +315,6 @@ private void Output(string message)
347
315
_messageCallback ? . Invoke ( message ) ;
348
316
}
349
317
350
- private void LatchInputToMultitrackUser ( )
351
- {
352
- if ( MultiTrack . IsActive )
353
- {
354
- var rewiredSource = MultiTrack . RewiringAdapter ;
355
- rewiredSource . PlayerSource = 1 ;
356
- rewiredSource . PlayerTargetMask = 1 << MultiTrack . CurrentPlayer ;
357
- if ( MultiTrack . RecordAll )
358
- {
359
- rewiredSource . PlayerTargetMask = unchecked ( ( int ) 0xFFFFFFFF ) ;
360
- }
361
-
362
- if ( Movie . InputLogLength > Movie . Emulator . Frame )
363
- {
364
- var input = Movie . GetInputState ( Movie . Emulator . Frame ) ;
365
- MovieController . SetFrom ( input ) ;
366
- }
367
-
368
- MovieController . SetPlayerFrom ( rewiredSource , MultiTrack . CurrentPlayer ) ;
369
- }
370
- }
371
-
372
318
private void LatchInputToUser ( )
373
319
{
374
320
MovieOut . Source = MovieIn ;
@@ -439,14 +385,7 @@ private void HandleFrameLoopForRecordMode()
439
385
}
440
386
else
441
387
{
442
- if ( MultiTrack . IsActive )
443
- {
444
- LatchInputToMultitrackUser ( ) ;
445
- }
446
- else
447
- {
448
- LatchInputToUser ( ) ;
449
- }
388
+ LatchInputToUser ( ) ;
450
389
}
451
390
452
391
Movie . RecordFrame ( Movie . Emulator . Frame , MovieController ) ;
0 commit comments