JVS: refactoring to be closer to actual hardware

Returns multiple JVS messages at once
Multiple I/O boards correctly handled
Jambo Safari playable
Virtua Golf boots
This commit is contained in:
Flyinghead 2018-10-11 21:17:55 +02:00
parent 82e0fc7f60
commit 2c4e68ff9f
3 changed files with 641 additions and 612 deletions

File diff suppressed because it is too large Load Diff

View File

@ -167,12 +167,6 @@ void maple_DoDma()
{
u32 outlen = MapleDevices[bus][port]->RawDma(&p_data[0], inlen + 4, &p_out[0]);
xfer_count =+ outlen;
/*
printf("JVS OUT: ");
u8 *p = (u8 *)&p_out[0];
for (int i = 0; i < outlen + 4; i++) printf("%02x ", p[i]);
printf("\n");
*/
}
else
{

View File

@ -212,7 +212,6 @@ extern ByteCount_t ByteCount ;
//./core/hw/maple/maple_devs.o
extern char EEPROM[0x100];
extern bool EEPROM_loaded;
extern _NaomiState State;
//./core/hw/maple/maple_if.o
//one time set
@ -916,7 +915,6 @@ bool dc_serialize(void **data, unsigned int *total_size)
REICAST_SA(EEPROM,0x100);
REICAST_S(EEPROM_loaded);
REICAST_S(State);
REICAST_S(maple_ddt_pending_reset);
@ -1277,7 +1275,6 @@ bool dc_unserialize(void **data, unsigned int *total_size)
REICAST_USA(EEPROM,0x100);
REICAST_US(EEPROM_loaded);
REICAST_US(State);
REICAST_US(maple_ddt_pending_reset);