aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/miscserverfixes.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-26 05:22:33 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-26 05:22:33 +0000
commitce6127ae96022ce6e803a876a2e39eed7bd754ea (patch)
tree606a902a6fc976c35da64d3a292ebac7e11fe62d /NorthstarDedicatedTest/miscserverfixes.cpp
parent3296aeae3cc035cfc20b9c7da40f7c5690e92daa (diff)
downloadNorthstarLauncher-ce6127ae96022ce6e803a876a2e39eed7bd754ea.tar.gz
NorthstarLauncher-ce6127ae96022ce6e803a876a2e39eed7bd754ea.zip
fix potentially unsafe concommand
Diffstat (limited to 'NorthstarDedicatedTest/miscserverfixes.cpp')
-rw-r--r--NorthstarDedicatedTest/miscserverfixes.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/miscserverfixes.cpp b/NorthstarDedicatedTest/miscserverfixes.cpp
new file mode 100644
index 00000000..2007a30c
--- /dev/null
+++ b/NorthstarDedicatedTest/miscserverfixes.cpp
@@ -0,0 +1,13 @@
+#include "pch.h"
+#include "miscserverfixes.h"
+#include "hookutils.h"
+
+void InitialiseMiscServerFixes(HMODULE baseAddress)
+{
+ // ret at the start of the concommand GenerateObjFile as it can crash servers
+ {
+ void* ptr = (char*)baseAddress + 0x38D920;
+ TempReadWrite rw(ptr);
+ *((char*)ptr) = (char)0xC3;
+ }
+} \ No newline at end of file