From 1609ecbe1e217c48189e377060b4068de90c594e Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 5 Oct 2024 20:17:52 +0200 Subject: update --- captures.txt | 2 ++ src/frontend/qt_sdl/LocalMP.cpp | 3 ++- src/vsr.h | 4 ++-- src/vsr_img.h | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/captures.txt b/captures.txt index cc80674..3aa05ac 100644 --- a/captures.txt +++ b/captures.txt @@ -27,3 +27,5 @@ melon_1725101597_instance_1.pcap melon_1725108450_instance_0.pcap: First decoded image melon_1725108452_instance_1.pcap +melon_1728147574_instance_0.pcap: completely black message v2 +melon_1728147575_instance_1.pcap diff --git a/src/frontend/qt_sdl/LocalMP.cpp b/src/frontend/qt_sdl/LocalMP.cpp index 9a3adf7..8d3dd8a 100644 --- a/src/frontend/qt_sdl/LocalMP.cpp +++ b/src/frontend/qt_sdl/LocalMP.cpp @@ -500,7 +500,8 @@ int SendPacketGeneric(u32 type, u8* packet, int len, u64 timestamp) } for (size_t i = safe; i < 0xa0; i++) { - packet[0x36 + i] = VSR_PC_MSG_DATA[content_offset - 0x24 + i]; + size_t msgdata_offset = content_offset + i - 0x24; + packet[0x36 + i] = VSR_PC_MSG_DATA[msgdata_offset]; } } #endif diff --git a/src/vsr.h b/src/vsr.h index fce78c0..77c7004 100644 --- a/src/vsr.h +++ b/src/vsr.h @@ -6,10 +6,10 @@ // #define VSR_DUMP_MESSAGES // add "Inject" menu bar item -#define VSR_INJECTION +// #define VSR_INJECTION // add "Fiddle" menu bar item #define VSR_MESSAGE_FIDDLING // drop non "new" frames (resends) -#define VSR_DROP_RESENDS +// #define VSR_DROP_RESENDS diff --git a/src/vsr_img.h b/src/vsr_img.h index 74e7813..09a8369 120000 --- a/src/vsr_img.h +++ b/src/vsr_img.h @@ -1 +1 @@ -../../experiments/conv/chocola.h \ No newline at end of file +../../experiments/conv/img.h \ No newline at end of file -- cgit v1.2.3