aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobinsch <hello@robinsch.com>2023-11-30 11:13:08 +0100
committerrobinsch <hello@robinsch.com>2023-11-30 11:13:08 +0100
commit342379fc640ebca80936745a0704cf413a64c138 (patch)
treecaec539c9d33ba35b90ae70dd958db57369024de
parent1ce37df167e195a4d28479fccc258c3830ea2b3f (diff)
Fixed naked character issue
-rw-r--r--Patcher.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Patcher.cpp b/Patcher.cpp
index d3200fd..54590a7 100644
--- a/Patcher.cpp
+++ b/Patcher.cpp
@@ -3,6 +3,9 @@
#include <fstream>
#include <array>
#include <iterator>
+#include <vector>
+
+// wow base = 50 0C00
int main(int argc, char** argv)
{
@@ -86,6 +89,12 @@ int main(int argc, char** argv)
wow_exe << b;
}
+ // naked character issue
+ wow_exe.clear();
+ wow_exe.seekg(0);
+ wow_exe.seekp(0x1DDC5D);
+ wow_exe << static_cast<char>(0xEB);
+
std::cout << "World of Warcraft exe has been patched!\n";
return 0;
}