Skip to content

Commit

Permalink
Merge pull request #1 from HeatXD/test
Browse files Browse the repository at this point in the history
Fix Savestate Desync
  • Loading branch information
HeatXD authored Mar 15, 2023
2 parents 1188766 + bbd98d3 commit 0a1dbd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "host.h"
#include "interrupt_controller.h"
#include "mdec.h"
#include "netplay.h"
#include "pad.h"
#include "settings.h"
#include "sio.h"
Expand All @@ -25,7 +26,6 @@
#include <cstdio>
#include <tuple>
#include <utility>
#include "netplay.h"
Log_SetChannel(Bus);

namespace Bus {
Expand Down Expand Up @@ -212,8 +212,8 @@ bool DoState(StateWrapper& sw)
sw.Do(&m_cdrom_access_time);
sw.Do(&m_spu_access_time);
sw.DoBytes(g_ram, g_ram_size);
if (!Netplay::Session::IsActive())
sw.DoBytes(g_bios, BIOS_SIZE);
// if (!Netplay::Session::IsActive())
sw.DoBytes(g_bios, BIOS_SIZE);
sw.DoArray(m_MEMCTRL.regs, countof(m_MEMCTRL.regs));
sw.Do(&m_ram_size_reg);
sw.Do(&m_tty_line_buffer);
Expand Down

0 comments on commit 0a1dbd1

Please sign in to comment.