From aa8c297524fdac43e3cee4975c3c4dd160146eab Mon Sep 17 00:00:00 2001 From: somewhatlurker <52014015+somewhatlurker@users.noreply.github.com> Date: Wed, 18 Sep 2019 20:22:05 +1000 Subject: [PATCH] score_saver: move score text upwards (dodgy hardcoded position, but I guess it's fine at least for now) --- source-code/source/plugins/TLAC/Components/ScoreSaver.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source-code/source/plugins/TLAC/Components/ScoreSaver.cpp b/source-code/source/plugins/TLAC/Components/ScoreSaver.cpp index 74e5d5e..b99ee5b 100644 --- a/source-code/source/plugins/TLAC/Components/ScoreSaver.cpp +++ b/source-code/source/plugins/TLAC/Components/ScoreSaver.cpp @@ -85,6 +85,12 @@ namespace TLAC::Components //InjectCode((void*)0x1405bfb80, { 0x11 }); //InjectCode((void*)0x1405bfb9c, { 0x11 }); + // move score text upwards because of shifted size + // WARNING: HARDCODED POSITION + InjectCode((void*)0x1405bfab4, { 0x48, 0xb8, 0x00, 0x00, 0x95, 0x44, 0x00, 0x00, 0x0e, 0x44 }); // MOV RAX, 0x440f400044950000 + InjectCode((void*)0x1405bfabe, { 0x48, 0x89, 0x44, 0x25, 0xb4 }); // MOV qword ptr [RBP + -0x4c], RAX + InjectCode((void*)0x1405bfac3, { 0x90, 0x90, 0x90, 0x90, 0x90 }); + DetourTransactionBegin(); DetourUpdateThread(GetCurrentThread());