From de175c7d038b2c2ce08b2a1ed85cc464e18e214b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 27 Oct 2026 19:01:55 +0100 Subject: [PATCH] proAdhoc: Say why MAC comparisons ignore the first byte Co-Authored-By: Claude Opus 5.5 --- Core/HLE/proAdhoc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/HLE/proAdhoc.cpp b/Core/HLE/proAdhoc.cpp index ce1b5b006c..c8013fc17b 100644 --- a/Core/HLE/proAdhoc.cpp +++ b/Core/HLE/proAdhoc.cpp @@ -145,7 +145,9 @@ static int chatMessageGeneration = 0; static int chatMessageCount = 0; bool isMacMatch(const SceNetEtherAddr* addr1, const SceNetEtherAddr* addr2) { - // Ignoring the 1st byte since there are games (ie. Gran Turismo) who tamper with the 1st byte of OUI to change the unicast/multicast bit + // Ignoring the 1st byte: games overwrite it (Gran Turismo changes the unicast bit, Street Riders sets it to + // 00 when sending PDP). On a PSP, whose MACs start with 00, that's harmless; PS Vitas' don't, so the aemu + // plugin ignores it too. return (memcmp(((const char*)addr1)+1, ((const char*)addr2)+1, ETHER_ADDR_LEN-1) == 0); }