aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r--src/frontend/qt_sdl/LocalMP.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/frontend/qt_sdl/LocalMP.cpp b/src/frontend/qt_sdl/LocalMP.cpp
index 27d1fd4..9a3adf7 100644
--- a/src/frontend/qt_sdl/LocalMP.cpp
+++ b/src/frontend/qt_sdl/LocalMP.cpp
@@ -55,6 +55,9 @@ pcap_dumper_t* dumper;
#ifdef VSR_MESSAGE_FIDDLING
#include <time.h>
bool fiddle = false;
+
+extern const unsigned char VSR_PC_MSG_DATA[];
+#include "../../vsr_img.h"
#endif
using namespace melonDS;
@@ -487,7 +490,6 @@ int SendPacketGeneric(u32 type, u8* packet, int len, u64 timestamp)
#ifdef VSR_MESSAGE_FIDDLING
u16 pcmeta_type = *(u16*)(packet + 0x2a);
if (fiddle && type == 1 && pictochat && pcmeta_type == 2) { // content type is message fragment
- const u8 fill = 0x33; // hot pink (#eb00eb)
unsigned safe = 0;
// if content offset == 0 only fill from index 0x24 onward (first 8
@@ -498,7 +500,7 @@ int SendPacketGeneric(u32 type, u8* packet, int len, u64 timestamp)
}
for (size_t i = safe; i < 0xa0; i++) {
- packet[0x36 + i] = fill;
+ packet[0x36 + i] = VSR_PC_MSG_DATA[content_offset - 0x24 + i];
}
}
#endif