Skip to content

Commit 7332923

Browse files
committed
Use BUILTIN_ addresses
1 parent 2cfd3f3 commit 7332923

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

ConsoleExtension/Entry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace ConsoleExtension
4444
{
4545
// UEngine::Exec hook for console commands
4646
// ----------------------------------------
47-
auto const UEngine_Exec_target = Init.ResolveTyped<t_UEngine_Exec>(BUILTIN_EXEC_PHOOK);
47+
auto const UEngine_Exec_target = Init.ResolveTyped<t_UEngine_Exec>(BUILTIN_UENGINE_EXEC_RVA);
4848
CHECK_RESOLVED(UEngine_Exec_target);
4949
UEngine_Exec_orig = (t_UEngine_Exec*)Init.InstallHook("UEngine::Exec", UEngine_Exec_target, UEngine_Exec_hook);
5050
CHECK_RESOLVED(UEngine_Exec_orig);

DebugLogger/VerboseLogger.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ namespace DebugLogger {
88
#define VL_STRINGIFY(x) VL_STRINGIFY_IMPL(x)
99

1010
// VerboseLogger RVAs
11+
// These aren't hooks, just locations to patch to add hooks
1112

1213
#if defined(SDK_TARGET_LE1)
1314
#define VL_ACCESSED_NONE_RVA LEASI_RVA(0x12575a)

TextureOverride/Entry.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,30 +53,30 @@ namespace TextureOverride
5353
{
5454
#if defined(SDK_TARGET_LE2) || defined(SDK_TARGET_LE3)
5555
// GFileManager so we can use InternalFindFiles
56-
GFileManager = Init.ResolveTyped<void*>(GFILEMANAGER_RVA);
56+
GFileManager = Init.ResolveTyped<void*>(BUILTIN_GFILEMANAGER_RVA);
5757
CHECK_RESOLVED(GFileManager);
5858

5959
// InternalFindFiles
60-
InternalFindFiles = Init.ResolveTyped<tInternalFindFiles>(INTERNAL_FIND_FILES_RVA);
60+
InternalFindFiles = Init.ResolveTyped<tInternalFindFiles>(BUILTIN_INTERNAL_FIND_FILES_RVA);
6161
CHECK_RESOLVED(InternalFindFiles);
6262

6363
// TFC registration
64-
RegisterTFC = Init.ResolveTyped<tRegisterTFC>(REGISTER_TFC_RVA);
64+
RegisterTFC = Init.ResolveTyped<tRegisterTFC>(BUILTIN_REGISTER_TFC_RVA);
6565
CHECK_RESOLVED(RegisterTFC);
6666
#endif
6767

6868
// Find oodle decompression function.
69-
OodleDecompress = Init.ResolveTyped<t_OodleDecompress>(OODLE_DECOMPRESS_RVA);
69+
OodleDecompress = Init.ResolveTyped<t_OodleDecompress>(BUILTIN_OODLE_DECOMPRESS_RVA);
7070
CHECK_RESOLVED(OodleDecompress);
7171

7272
// For replacing mip data
73-
auto const UTexture2D_Serialize_target = Init.ResolveTyped<t_UTexture2D_Serialize>(UTEXTURE2D_SERIALIZE_RVA);
73+
auto const UTexture2D_Serialize_target = Init.ResolveTyped<t_UTexture2D_Serialize>(BUILTIN_UTEXTURE2D_SERIALIZE_RVA);
7474
CHECK_RESOLVED(UTexture2D_Serialize_target);
7575
UTexture2D_Serialize_orig = (t_UTexture2D_Serialize*)Init.InstallHook("UTexture2D::Serialize", UTexture2D_Serialize_target, UTexture2D_Serialize_hook);
7676
CHECK_RESOLVED(UTexture2D_Serialize_orig);
7777

7878
// For console commands
79-
auto const UGameEngine_Exec_target = Init.ResolveTyped<t_UGameEngine_Exec>(UGAMEENGINE_EXEC_RVA);
79+
auto const UGameEngine_Exec_target = Init.ResolveTyped<t_UGameEngine_Exec>(BUILTIN_UGAMEENGINE_EXEC_RVA);
8080
CHECK_RESOLVED(UGameEngine_Exec_target);
8181
UGameEngine_Exec_orig = (t_UGameEngine_Exec*)Init.InstallHook("UGameEngine::Exec", UGameEngine_Exec_target, UGameEngine_Exec_hook);
8282
CHECK_RESOLVED(UGameEngine_Exec_orig);

0 commit comments

Comments
 (0)