From 5d1e2f722552914dc909961bdf63bf2626f83c45 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Fri, 15 Dec 2023 18:26:30 +0800 Subject: [PATCH] maple: init_block_write depends on 32-bit accesses The template instantiation was causing 8-bit writes to the command buffer, when they were intended to be 32-bit writes. This garbled and truncated the data ultimately sent to the VMU LCD. --- maple/maple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maple/maple.cpp b/maple/maple.cpp index e0aee50..3ec466b 100644 --- a/maple/maple.cpp +++ b/maple/maple.cpp @@ -99,7 +99,7 @@ void init_block_write(uint32_t * command_buf, uint32_t * receive_buf, destination_ap, block_write::command_code, (sizeof (struct block_write::data_fields)) + data_size, true); - auto host_command = reinterpret_cast> *>(command_buf); + auto host_command = reinterpret_cast> *>(command_buf); auto& fields = host_command->bus_data.data_fields; // BW LCD function type