Maple Message to Dreamcast Controller USB now prefixed for compatibility with newest version

This commit is contained in:
Mike Kosek 2025-01-21 17:39:37 +01:00 committed by flyinghead
parent 28f5dd983e
commit cb2d3e3776
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ static asio::error_code sendMsg(const MapleMsg& msg, asio::ip::tcp::iostream& st
{
std::ostringstream s;
s.fill('0');
if (dreamcastControllerType == TYPE_DREAMCASTCONTROLLERUSB)
{
// Messages to Dreamcast Controller USB need to be prefixed to trigger the correct parser
s << "X ";
}
s << std::hex << std::uppercase
<< std::setw(2) << (u32)msg.command << " "
<< std::setw(2) << (u32)msg.destAP << " "