aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--captures.txt2
-rw-r--r--src/frontend/qt_sdl/LocalMP.cpp3
-rw-r--r--src/vsr.h4
l---------src/vsr_img.h2
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