aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile13
-rw-r--r--src/frontend/qt_sdl/LocalMP.cpp6
l---------src/vsr_img.h1
3 files changed, 5 insertions, 15 deletions
diff --git a/makefile b/makefile
deleted file mode 100644
index 6ca562e..0000000
--- a/makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-# lazy forwarding makefile
-
-.PHONY: FORCE
-all: build/melonDS
-
-build/build.ninja: CMakeLists.txt
- @cmake -B build -G Ninja --fresh --log-level WARNING
-
-build/melonDS: build/build.ninja FORCE
- @ninja -C build
-
-run: build/melonDS
- @$< --boot always
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
diff --git a/src/vsr_img.h b/src/vsr_img.h
new file mode 120000
index 0000000..74e7813
--- /dev/null
+++ b/src/vsr_img.h
@@ -0,0 +1 @@
+../../experiments/conv/chocola.h \ No newline at end of file