Netplay: Sync GameCube SRAM.

This commit is contained in:
Admiral H. Curtiss committed 2015-06-14 16:52:08 +02:00
1 parent 9e00ddbdf7
commit abb65515b9
8 files changed
+69 -4

No files matched your search

+6 -1
View File
@@ -16,6 +16,7 @@
#include "Core/PowerPC/PowerPC.h"
SRAM g_SRAM;
bool g_SRAM_netplay_initialized = false;
namespace ExpansionInterface
{
@@ -30,7 +31,11 @@ static void UpdateInterruptsCallback(u64 userdata, int cycles_late);
void Init()
{
InitSRAM();
if (!g_SRAM_netplay_initialized)
{
InitSRAM();
}
for (u32 i = 0; i < MAX_EXI_CHANNELS; i++)
g_Channels[i] = new CEXIChannel(i);