aboutsummaryrefslogtreecommitdiff
path: root/CustomLoadingScreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CustomLoadingScreen.cpp')
1 files changed, 3 insertions, 2 deletions
diff --git a/CustomLoadingScreen.cpp b/CustomLoadingScreen.cpp
index 0e380f6..ae7a302 100644
--- a/CustomLoadingScreen.cpp
+++ b/CustomLoadingScreen.cpp
@@ -1,6 +1,7 @@
#include "CustomLoadingScreen.h"
#include "Patcher.h"
+#include "Offsets.h"
CustomLoadingScreen::CustomLoadingScreen(char* imagePath)
@@ -11,10 +12,10 @@ CustomLoadingScreen::CustomLoadingScreen(char* imagePath)
void CustomLoadingScreen::OnInitialise()
{
//original string "/resources/loading_slash.png"
- Patcher().Patch((BYTE*)GetModuleHandle(NULL) + 0x1E72D20,(int64_t)this->imagePath);
+ Patcher().Patch((BYTE*)GetModuleHandle(NULL) + Offsets::pathToLoadScreen,(int64_t)this->imagePath);
//change LEA to MOV by changing 0x8d to 0x8b
- Patcher().Patch((BYTE*)GetModuleHandle(NULL) + 0xEEA8EE + 1, (int8_t)0x8b);
+ Patcher().Patch((BYTE*)GetModuleHandle(NULL) + Offsets::loadPathToLoadScreen + 1, (int8_t)0x8b);
}
void CustomLoadingScreen::OnMenuMainWindow()