aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/frontend/qt_sdl/LocalMP.cpp3
-rw-r--r--src/vsr.h4
l---------src/vsr_img.h2
3 files changed, 5 insertions, 4 deletions
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