Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Commit 3852a4d

Browse files
committed
[WIRED] Emulate a real VMU w/ LCD & RTC, some games don't like MEM only device
1 parent 2c0a367 commit 3852a4d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

main/wired/maple.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -562,10 +562,10 @@ static unsigned maple_rx(unsigned cause) {
562562
case CMD_INFO_REQ:
563563
pkt.len = 28;
564564
pkt.cmd = CMD_INFO_RSP;
565-
pkt.data32[0] = ID_VMU_MEM;
566-
pkt.data32[1] = DESC_VMU_MEMORY;
567-
pkt.data32[2] = 0;
568-
pkt.data32[3] = 0;
565+
pkt.data32[0] = ID_VMU_CLK | ID_VMU_LCD | ID_VMU_MEM;
566+
pkt.data32[1] = DESC_VMU_TIMER;
567+
pkt.data32[2] = DESC_VMU_SCREEN;
568+
pkt.data32[3] = DESC_VMU_MEMORY;
569569
memcpy((void *)&pkt.data32[4], vmu_area_dir_name, sizeof(vmu_area_dir_name));
570570
memcpy((void *)&pkt.data32[12], brand, sizeof(brand));
571571
pkt.data32[27] = PWR_VMU;
@@ -593,7 +593,7 @@ static unsigned maple_rx(unsigned cause) {
593593
maple_tx(port, maple0, maple1, pkt.data, pkt.len * 4 + 5);
594594
break;
595595
case CMD_BLOCK_WRITE:
596-
if (pkt.len != (32 + 2)) {
596+
if (pkt.len != (32 + 2) && pkt.data32[0] == ID_VMU_MEM) {
597597
ets_printf("Unexpected Block Write packet length: 0x%02X, expected 0x22\n", pkt.len);
598598
}
599599
pkt.len = 0x00;

0 commit comments

Comments
 (0)