예제 #1
0
        public override void StartNewRecording()
        {
            ClearTasprojExtras();
            Markers.Add(0, StartsFromSavestate ? "Savestate" : "Power on");
            ChangeLog = new TasMovieChangeLog(this);

            base.StartNewRecording();
        }
예제 #2
0
 /// <exception cref="InvalidOperationException">loaded core does not implement <see cref="IStatable"/></exception>
 internal TasMovie(IMovieSession session, string path) : base(session, path)
 {
     Branches        = new TasBranchCollection(this);
     ChangeLog       = new TasMovieChangeLog(this);
     TasStateManager = new TasStateManager(this, session.Settings.DefaultTasStateManagerSettings);
     Header[HeaderKeys.MovieVersion] = "BizHawk v2.0 Tasproj v1.0";
     Markers = new TasMovieMarkerList(this);
     Markers.CollectionChanged += Markers_CollectionChanged;
     Markers.Add(0, "Power on");
 }
예제 #3
0
 /// <exception cref="InvalidOperationException">loaded core does not implement <see cref="IStatable"/></exception>
 internal TasMovie(string path, bool startsFromSavestate) : base(path)
 {
     Branches        = new TasBranchCollection(this);
     ChangeLog       = new TasMovieChangeLog(this);
     TasStateManager = new TasStateManager(this, Global.Config.DefaultTasStateManagerSettings);
     Header[HeaderKeys.MovieVersion] = "BizHawk v2.0 Tasproj v1.0";
     Markers = new TasMovieMarkerList(this);
     Markers.CollectionChanged += Markers_CollectionChanged;
     Markers.Add(0, startsFromSavestate ? "Savestate" : "Power on");
 }
예제 #4
0
 /// <exception cref="InvalidOperationException">loaded core does not implement <see cref="IStatable"/></exception>
 internal TasMovie(IMovieSession session, string path) : base(session, path)
 {
     Branches  = new TasBranchCollection(this);
     ChangeLog = new TasMovieChangeLog(this);
     Header[HeaderKeys.MovieVersion] = $"BizHawk v2.0 Tasproj v{CurrentVersion}";
     Markers = new TasMovieMarkerList(this);
     Markers.CollectionChanged += Markers_CollectionChanged;
     Markers.Add(0, "Power on");
     TasStateManager = new ZwinderStateManager();
 }
 /// <exception cref="InvalidOperationException">loaded core does not implement <see cref="IStatable"/></exception>
 internal TasMovie(IMovieSession session, string path) : base(session, path)
 {
     Branches  = new TasBranchCollection(this);
     ChangeLog = new TasMovieChangeLog(this);
     Header[HeaderKeys.MovieVersion] = $"BizHawk v2.0 Tasproj v{CurrentVersion.ToString(CultureInfo.InvariantCulture)}";
     Markers = new TasMovieMarkerList(this);
     Markers.CollectionChanged += Markers_CollectionChanged;
     Markers.Add(0, "Power on");
     TasStateManager = new ZwinderStateManager(
         session.Settings.DefaultTasStateManagerSettings,
         IsReserved);
 }
예제 #6
0
        /// <exception cref="InvalidOperationException">loaded core does not implement <see cref="IStatable"/></exception>
        public TasMovie(string path = null, bool startsFromSavestate = false) : base(path)
        {
            if (!Global.Emulator.HasSavestates())
            {
                throw new InvalidOperationException($"Cannot create a {nameof(TasMovie)} against a core that does not implement {nameof(IStatable)}");
            }

            Branches        = new TasBranchCollection(this);
            ChangeLog       = new TasMovieChangeLog(this);
            TasStateManager = new TasStateManager(this, Global.Config.DefaultTasStateManagerSettings);
            Header[HeaderKeys.MovieVersion] = "BizHawk v2.0 Tasproj v1.0";
            Markers = new TasMovieMarkerList(this);
            Markers.CollectionChanged += Markers_CollectionChanged;
            Markers.Add(0, startsFromSavestate ? "Savestate" : "Power on");
        }
예제 #7
0
        /// <exception cref="InvalidOperationException">loaded core does not implement <see cref="IStatable"/></exception>
        public TasMovie(string path = null, bool startsFromSavestate = false) : base(path)
        {
            if (!Global.Emulator.HasSavestates())
            {
                throw new InvalidOperationException($"Cannot create a {nameof(TasMovie)} against a core that does not implement {nameof(IStatable)}");
            }

            ChangeLog       = new TasMovieChangeLog(this);
            TasStateManager = new TasStateManager(this);
            Session         = new TasSession();
            Header[HeaderKeys.MOVIEVERSION] = "BizHawk v2.0 Tasproj v1.0";
            Markers = new TasMovieMarkerList(this);
            Markers.CollectionChanged += Markers_CollectionChanged;
            Markers.Add(0, startsFromSavestate ? "Savestate" : "Power on");
            BindMarkersToInput = false;
            CurrentBranch      = -1;
        }
예제 #8
0
        public TasMovie(bool startsFromSavestate = false, BackgroundWorker progressReportWorker = null)
        {
            _progressReportWorker = progressReportWorker;
            if (!Global.Emulator.HasSavestates())
            {
                throw new InvalidOperationException("Cannot create a TasMovie against a core that does not implement IStatable");
            }

            ChangeLog     = new TasMovieChangeLog(this);
            _stateManager = new TasStateManager(this);
            Session       = new TasSession(this);
            Header[HeaderKeys.MOVIEVERSION] = "BizHawk v2.0 Tasproj v1.0";
            Markers = new TasMovieMarkerList(this);
            Markers.CollectionChanged += Markers_CollectionChanged;
            Markers.Add(0, startsFromSavestate ? "Savestate" : "Power on");
            BindMarkersToInput = true;
            CurrentBranch      = -1;
        }
예제 #9
0
파일: TasMovie.cs 프로젝트: adituv/BizHawk
		public TasMovie(bool startsFromSavestate = false, BackgroundWorker progressReportWorker = null)
			: base()
		{
			_progressReportWorker = progressReportWorker;
			if (!Global.Emulator.HasSavestates())
			{
				throw new InvalidOperationException("Cannot create a TasMovie against a core that does not implement IStatable");
			}

			ChangeLog = new TasMovieChangeLog(this);

			StateManager = new TasStateManager(this);
			Header[HeaderKeys.MOVIEVERSION] = "BizHawk v2.0 Tasproj v1.0";
			Markers = new TasMovieMarkerList(this);
			Markers.CollectionChanged += Markers_CollectionChanged;
			Markers.Add(0, startsFromSavestate ? "Savestate" : "Power on");
			
			BindMarkersToInput = true;
		}
예제 #10
0
파일: TasMovie.cs 프로젝트: radtek/BizHawk
        public TasMovie(string path, bool startsFromSavestate = false, BackgroundWorker progressReportWorker = null)
            : base(path)
        {
            // TODO: how to call the default constructor AND the base(path) constructor?  And is base(path) calling base() ?
            _progressReportWorker = progressReportWorker;
            if (!Global.Emulator.HasSavestates())
            {
                throw new InvalidOperationException($"Cannot create a {nameof(TasMovie)} against a core that does not implement {nameof(IStatable)}");
            }

            ChangeLog     = new TasMovieChangeLog(this);
            _stateManager = new TasStateManager(this);
            Session       = new TasSession(this);
            Header[HeaderKeys.MOVIEVERSION] = "BizHawk v2.0 Tasproj v1.0";
            Markers = new TasMovieMarkerList(this);
            Markers.CollectionChanged += Markers_CollectionChanged;
            Markers.Add(0, startsFromSavestate ? "Savestate" : "Power on");
            BindMarkersToInput = false;
            CurrentBranch      = -1;
        }
예제 #11
0
		public TasMovie(string path, bool startsFromSavestate = false, BackgroundWorker progressReportWorker = null)
			: base(path)
		{
			// TODO: how to call the default constructor AND the base(path) constructor?  And is base(path) calling base() ?
			_progressReportWorker = progressReportWorker;
			if (!Global.Emulator.HasSavestates())
			{
				throw new InvalidOperationException("Cannot create a TasMovie against a core that does not implement IStatable");
			}

			ChangeLog = new TasMovieChangeLog(this);

			StateManager = new TasStateManager(this);
			Session = new TasSession(this);
			Header[HeaderKeys.MOVIEVERSION] = "BizHawk v2.0 Tasproj v1.0";
			Markers = new TasMovieMarkerList(this);
			Markers.CollectionChanged += Markers_CollectionChanged;
			Markers.Add(0, startsFromSavestate ? "Savestate" : "Power on");

			BindMarkersToInput = true;
			CurrentBranch = -1;
		}
예제 #12
0
		public override void StartNewRecording()
		{
			ClearTasprojExtras();
			Markers.Add(0, StartsFromSavestate ? "Savestate" : "Power on");
			ChangeLog = new TasMovieChangeLog(this);

			base.StartNewRecording();
		}