Merge pull request #917 from srg320/master

Saturn: fix the Seek command. SNES: increase the maximum bsram size to 256Kb.
This commit is contained in:
Alexey Melnikov
2024-09-12 22:23:46 +08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -604,6 +604,7 @@ void satcdd_t::CommandExec() {
case SATURN_COMM_SEEK:
this->seek_lba = fad - 150;
this->lba = fad - 150;
this->track = this->toc.GetTrackByLBA(this->seek_lba);
this->index = this->toc.GetIndexByLBA(this->track, this->seek_lba);

View File

@@ -156,7 +156,7 @@ uint8_t* snes_get_header(fileTYPE *f)
if (addr)
{
uint8_t ramsz = buf[addr + RamSize];
if (ramsz >= 0x08) ramsz = 0;
if (ramsz >= 0x09) ramsz = 0;
//re-calc rom size
uint8_t romsz = 15;