-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1169,8 +1169,11 @@ void S9xNPSendSRAMToClient (int c) | |
uint8 sram [7]; | ||
int SRAMSize = Memory.SRAMSize ? | ||
(1 << (Memory.SRAMSize + 3)) * 128 : 0; | ||
if (SRAMSize > 0x10000) | ||
SRAMSize = 0x10000; | ||
if (Memory.LoROM) | ||
SRAMSize = SRAMSize < 0x70000 ? SRAMSize : 0x70000; | ||
else if (Memory.HiROM) | ||
SRAMSize = SRAMSize < 0x40000 ? SRAMSize : 0x40000; | ||
|
||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bearoso
Collaborator
|
||
int len = 7 + SRAMSize; | ||
|
||
sprintf (NetPlay.ActionMsg, "SERVER: Sending S-RAM to player %d...", c + 1); | ||
|
2 comments
on commit e66acce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably also adjust this in cheats2.cpp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheats and netplay client have been added in 46f11f6
This will be a problem, since the client does not accept sram > 0x10000 (S9xNPGetSRAMData). But I'm not sure if netplay is even working right not.