mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-13 03:29:24 +00:00
Fix sram accesses.
This commit is contained in:
parent
61e6729ce9
commit
d594d4f12f
10 changed files with 262 additions and 249 deletions
|
@ -351,9 +351,9 @@ unsigned int NetPlayServer::OnConnect(ENetPeer* socket)
|
|||
}
|
||||
spac.clear();
|
||||
spac << static_cast<MessageId>(NP_MSG_SYNC_GC_SRAM);
|
||||
for (size_t i = 0; i < sizeof(g_SRAM.p_SRAM); ++i)
|
||||
for (size_t i = 0; i < sizeof(g_SRAM) - offsetof(Sram, settings); ++i)
|
||||
{
|
||||
spac << g_SRAM.p_SRAM[i];
|
||||
spac << g_SRAM.raw[offsetof(Sram, settings) + i];
|
||||
}
|
||||
Send(player.socket, spac);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue