mirror of
https://github.com/SourMesen/Mesen.git
synced 2025-04-02 10:52:48 -04:00
NES 2.0: Fixed bug with saved CHR RAM
This commit is contained in:
parent
bdd607d94f
commit
4e4d24fa10
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ struct NESHeader
|
|||
uint32_t GetSaveChrRamSize()
|
||||
{
|
||||
if(GetRomHeaderVersion() == RomHeaderVersion::Nes2_0) {
|
||||
uint8_t value = (Byte10 & 0xF0) >> 4;
|
||||
uint8_t value = (Byte11 & 0xF0) >> 4;
|
||||
return value == 0 ? 0 : 128 * (uint32_t)std::pow(2, value - 1);
|
||||
} else {
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue