snes: add SPC loading

* pcecd: read 256 sectors when length is 0 (Kabuki Itouryodan).

* pcecd: send status immediately for commands with instant execution (Bomberman: Panic Bomber), some cleanup

* snes: add BSX support

* snes: add SPC loading
This commit is contained in:
Sergey Dvodnenko
2020-10-16 20:06:40 +03:00
committed by GitHub
parent 759e4aff06
commit 0be5c27205

View File

@@ -1931,6 +1931,18 @@ int user_io_file_tx(const char* name, unsigned char index, char opensave, char m
sleep(1);
}
}
else if ((index & 0x3F) == 1) {
printf("Load SPC ROM.\n");
FileReadSec(&f, buf);
user_io_file_tx_data(buf, 256);
FileSeek(&f, (64*1024)+256, SEEK_SET);
FileReadSec(&f, buf);
user_io_file_tx_data(buf, 256);
FileSeek(&f, 256, SEEK_SET);
bytes2send = 64 * 1024;
}
else {
printf("Load SNES ROM.\n");
uint8_t* buf = snes_get_header(&f);