nes icon indicating copy to clipboard operation
nes copied to clipboard

Save state doesn't work correctly for games that make use of CHR RAM

Open blahness opened this issue 8 years ago • 2 comments

Since you're not saving the carts chr data when it's written to games such as Metroid have a black screen on state load. This same issue would apply to games making use of PRG RAM.

blahness avatar Jan 17 '18 04:01 blahness

@blahness Thanks - not sure how I missed this! Fixed now in master. Unfortunately it breaks existing savefiles, which may need to be rm'd from the ~/.nes/save folder.

fogleman avatar Jan 23 '18 02:01 fogleman

The INES header format states that if the CHR ROM size is 0 then it's CHR RAM. I think the best play is to mark the CHR data as RAM in that case & only save it in the state file if it's marked as RAM. Since your emulator in its current state doesn't allow PRG data to be written to there's no point in saving it right now. It's just something to keep in mind when it's supported.

blahness avatar Jan 23 '18 06:01 blahness