예제 #1
0
        public void LoadState(KeyValuePair <int, Stream> state)
        {
            StatableEmulator.LoadStateBinary(new BinaryReader(state.Value));

            if (state.Key == 0 && CurrentTasMovie.StartsFromSavestate)
            {
                Emulator.ResetCounters();
            }

            UpdateOtherTools();
        }
예제 #2
0
        public void LoadState(KeyValuePair <int, byte[]> state)
        {
            StatableEmulator.LoadStateBinary(new BinaryReader(new MemoryStream(state.Value.ToArray())));

            if (state.Key == 0 && CurrentTasMovie.StartsFromSavestate)
            {
                Emulator.ResetCounters();
            }

            _hackyDontUpdate = true;
            GlobalWin.Tools.UpdateBefore();
            GlobalWin.Tools.UpdateAfter();
            _hackyDontUpdate = false;
        }
예제 #3
0
파일: TAStudio.cs 프로젝트: m35/BizHawk
        public void LoadState(KeyValuePair <int, byte[]> state)
        {
            using var ms = new MemoryStream(state.Value);
            using var br = new BinaryReader(ms);
            StatableEmulator.LoadStateBinary(br);

            if (state.Key == 0 && CurrentTasMovie.StartsFromSavestate)
            {
                Emulator.ResetCounters();
            }

            _hackyDontUpdate = true;
            Tools.UpdateBefore();
            Tools.UpdateAfter();
            _hackyDontUpdate = false;
        }