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

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

            UpdateOtherTools();
        }
Exemple #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;
        }
Exemple #3
0
        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;
        }