diff options
author | HappyDOGE <28511119+HappyDOGE@users.noreply.github.com> | 2021-12-27 14:55:59 +0300 |
---|---|---|
committer | HappyDOGE <28511119+HappyDOGE@users.noreply.github.com> | 2021-12-27 14:55:59 +0300 |
commit | 00eab3547822e31d9e5eff7cd63b8b4854de709b (patch) | |
tree | 984f13ee3135a69fd815883bfeac3e66f465cea2 /NorthstarDedicatedTest/miscserverfixes.cpp | |
parent | 07d508ed4ebcd247250b8a983e5c85dffee4d5ef (diff) | |
parent | c27bf9979b7524672e5315fe04d05cc93f6ee6af (diff) | |
download | NorthstarLauncher-00eab3547822e31d9e5eff7cd63b8b4854de709b.tar.gz NorthstarLauncher-00eab3547822e31d9e5eff7cd63b8b4854de709b.zip |
merge
Diffstat (limited to 'NorthstarDedicatedTest/miscserverfixes.cpp')
-rw-r--r-- | NorthstarDedicatedTest/miscserverfixes.cpp | 13 |
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 |