Exemplo n.º 1
0
        private void LoadBranch(TasBranch branch)
        {
            Tastudio.CurrentTasMovie.LoadBranch(branch);
            var stateInfo = new KeyValuePair <int, byte[]>(branch.Frame, branch.CoreData);

            Tastudio.LoadState(stateInfo);
            QuickBmpFile.Copy(new BitmapBufferVideoProvider(branch.OSDFrameBuffer), Tastudio.VideoProvider);
            GlobalWin.MainForm.PauseOnFrame = null;
            Tastudio.RefreshDialog();
        }
Exemplo n.º 2
0
        private void LoadBranch(TasBranch branch)
        {
            if (Tastudio.Settings.OldControlSchemeForBranches && !Tastudio.TasPlaybackBox.RecordingMode)
            {
                JumpToBranchToolStripMenuItem_Click(null, null);
                return;
            }

            Tastudio.CurrentTasMovie.LoadBranch(branch);
            var stateInfo = new KeyValuePair <int, byte[]>(branch.Frame, branch.CoreData);

            Tastudio.LoadState(stateInfo);
            QuickBmpFile.Copy(new BitmapBufferVideoProvider(branch.OSDFrameBuffer), Tastudio.VideoProvider);

            if (Tastudio.Settings.OldControlSchemeForBranches && Tastudio.TasPlaybackBox.RecordingMode)
            {
                Tastudio.CurrentTasMovie.Truncate(branch.Frame);
            }

            GlobalWin.MainForm.PauseOnFrame = null;
            Tastudio.RefreshDialog();
        }