Пример #1
0
        private void StartNewProjectFromNowMenuItem_Click(object sender, EventArgs e)
        {
            if (AskSaveChanges())
            {
                int index = Emulator.Frame;

                TasMovie newProject = CurrentTasMovie.ConvertToSavestateAnchoredMovie(
                    index, (byte[])StatableEmulator.SaveStateBinary().Clone());

                GlobalWin.MainForm.PauseEmulator();
                LoadFile(new FileInfo(newProject.Filename), true);
            }
        }
Пример #2
0
        private void StartNewProjectFromNowMenuItem_Click(object sender, EventArgs e)
        {
            if (TasView.SelectedRows.Count() == 1 &&
                !CurrentTasMovie.StartsFromSavestate)
            {
                if (AskSaveChanges())
                {
                    int index = TasView.SelectedRows.First();
                    GoToFrame(index);

                    TasMovie newProject = CurrentTasMovie.ConvertToSavestateAnchoredMovie(
                        index, (byte[])StatableEmulator.SaveStateBinary().Clone());

                    GlobalWin.MainForm.PauseEmulator();
                    LoadFile(new FileInfo(newProject.Filename));
                }
            }
        }