示例#1
0
		public void SaveStateText(TextWriter writer)
		{
			var s = new TextState<TextStateData>();
			s.Prepare();
			var ff = s.GetFunctionPointersSave();
			BizSwan.bizswan_txtstatesave(Core, ref ff);
			SaveTextStateData(s.ExtraData);
			ser.Serialize(writer, s);
		}
示例#2
0
        internal void LoadState(TextState <TextStateData> s)
        {
            s.Prepare();
            var ff = s.GetFunctionPointersLoad();

            LibGambatte.gambatte_newstateload_ex(GambatteState, ref ff);
            IsLagFrame    = s.ExtraData.IsLagFrame;
            LagCount      = s.ExtraData.LagCount;
            Frame         = s.ExtraData.Frame;
            frameOverflow = s.ExtraData.frameOverflow;
            _cycleCount   = s.ExtraData._cycleCount;
            IsCgb         = s.ExtraData.IsCgb;
            IsSgb         = s.ExtraData.IsSgb;
        }
示例#3
0
        public void SaveStateText(TextWriter writer)
        {
            var s = new TextState <TextStateData>();

            s.Prepare();
            var ff = s.GetFunctionPointersSave();

            LibLynx.TxtStateSave(Core, ref ff);
            s.ExtraData.IsLagFrame = IsLagFrame;
            s.ExtraData.LagCount   = LagCount;
            s.ExtraData.Frame      = Frame;

            _ser.Serialize(writer, s);
        }
示例#4
0
        internal TextState <TextStateData> SaveState()
        {
            var s = new TextState <TextStateData>();

            s.Prepare();
            var ff = s.GetFunctionPointersSave();

            LibGambatte.gambatte_newstatesave_ex(GambatteState, ref ff);
            s.ExtraData.IsLagFrame    = IsLagFrame;
            s.ExtraData.LagCount      = LagCount;
            s.ExtraData.Frame         = Frame;
            s.ExtraData.frameOverflow = frameOverflow;
            s.ExtraData._cycleCount   = _cycleCount;
            return(s);
        }
示例#5
0
        public void SaveStateText(TextWriter writer)
        {
            var s = new TextState <TextStateData>();

            s.Prepare();
            var ff = s.GetFunctionPointersSave();

            LibLynx.TxtStateSave(Core, ref ff);
            s.ExtraData.IsLagFrame = IsLagFrame;
            s.ExtraData.LagCount   = LagCount;
            s.ExtraData.Frame      = Frame;

            _ser.Serialize(writer, s);

            ////Console.WriteLine(BizHawk.Common.BufferExtensions.BufferExtensions.HashSHA1(SaveStateBinary()));
        }
示例#6
0
        public void SaveStateText(TextWriter writer)
        {
            var s = new TextState<TextStateData>();
            s.Prepare();
            var ff = s.GetFunctionPointersSave();
            LibLynx.TxtStateSave(Core, ref ff);
            s.ExtraData.IsLagFrame = IsLagFrame;
            s.ExtraData.LagCount = LagCount;
            s.ExtraData.Frame = Frame;

            ser.Serialize(writer, s);
            // write extra copy of stuff we don't use
            writer.WriteLine();
            writer.WriteLine("Frame {0}", Frame);

            //Console.WriteLine(BizHawk.Common.BufferExtensions.BufferExtensions.HashSHA1(SaveStateBinary()));
        }
示例#7
0
        public void SaveStateText(System.IO.TextWriter writer)
        {
            var s = new TextState <TextStateData>();

            s.Prepare();
            var ff = s.GetFunctionPointersSave();

            LibGambatte.gambatte_newstatesave_ex(GambatteState, ref ff);
            s.ExtraData.IsLagFrame    = IsLagFrame;
            s.ExtraData.LagCount      = LagCount;
            s.ExtraData.Frame         = Frame;
            s.ExtraData.frameOverflow = frameOverflow;
            s.ExtraData._cycleCount   = _cycleCount;

            ser.Serialize(writer, s);
            // write extra copy of stuff we don't use
            writer.WriteLine();
            writer.WriteLine("Frame {0}", Frame);
        }
示例#8
0
        public void SaveStateText(TextWriter writer)
        {
            var s = new TextState <TextStateData>();

            s.Prepare();
            var ff = s.GetFunctionPointersSave();

            BizSwan.bizswan_txtstatesave(Core, ref ff);
            s.ExtraData.IsLagFrame = IsLagFrame;
            s.ExtraData.LagCount   = LagCount;
            s.ExtraData.Frame      = Frame;

            ser.Serialize(writer, s);
            // write extra copy of stuff we don't use
            writer.WriteLine();
            writer.WriteLine("Frame {0}", Frame);

            // debug
            //Console.WriteLine(Util.Hash_SHA1(SaveStateBinary()));
        }
示例#9
0
		internal TextState<TextStateData> SaveState()
		{
			var s = new TextState<TextStateData>();
			s.Prepare();
			var ff = s.GetFunctionPointersSave();
			LibGambatte.gambatte_newstatesave_ex(GambatteState, ref ff);
			s.ExtraData.IsLagFrame = IsLagFrame;
			s.ExtraData.LagCount = LagCount;
			s.ExtraData.Frame = Frame;
			s.ExtraData.frameOverflow = frameOverflow;
			s.ExtraData._cycleCount = _cycleCount;
			return s;
		}
示例#10
0
		internal void LoadState(TextState<TextStateData> s)
		{
			s.Prepare();
			var ff = s.GetFunctionPointersLoad();
			LibGambatte.gambatte_newstateload_ex(GambatteState, ref ff);
			IsLagFrame = s.ExtraData.IsLagFrame;
			LagCount = s.ExtraData.LagCount;
			Frame = s.ExtraData.Frame;
			frameOverflow = s.ExtraData.frameOverflow;
			_cycleCount = s.ExtraData._cycleCount;
		}
示例#11
0
		public void SaveStateText(TextWriter writer)
		{
			var s = new TextState<TextStateData>();
			s.Prepare();
			var ff = s.GetFunctionPointersSave();
			BizSwan.bizswan_txtstatesave(Core, ref ff);
			s.ExtraData.IsLagFrame = IsLagFrame;
			s.ExtraData.LagCount = LagCount;
			s.ExtraData.Frame = Frame;

			ser.Serialize(writer, s);
			// write extra copy of stuff we don't use
			writer.WriteLine();
			writer.WriteLine("Frame {0}", Frame);

			// debug
			//Console.WriteLine(Util.Hash_SHA1(SaveStateBinary()));
		}
示例#12
0
		public void SaveStateText(System.IO.TextWriter writer)
		{
			var s = new TextState<TextStateData>();
			s.Prepare();
			var ff = s.GetFunctionPointersSave();
			LibGambatte.gambatte_newstatesave_ex(GambatteState, ref ff);
			s.ExtraData.IsLagFrame = IsLagFrame;
			s.ExtraData.LagCount = LagCount;
			s.ExtraData.Frame = Frame;
			s.ExtraData.frameOverflow = frameOverflow;
			s.ExtraData._cycleCount = _cycleCount;

			ser.Serialize(writer, s);
			// write extra copy of stuff we don't use
			writer.WriteLine();
			writer.WriteLine("Frame {0}", Frame);
		}