Skip to content

Commit 999d648

Browse files
committed
feat(Lua): Added ability to return address in signature override files
This is instead of using `Register` and `OnMatchFound`.
1 parent 1c2aef2 commit 999d648

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

UE4SS/src/Signatures.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ namespace RC
4646

4747
lua.execute_file(script_file_path_and_name.string());
4848

49+
if (lua.get_stack_size() > 0 && lua.is_integer())
50+
{
51+
auto found_address = reinterpret_cast<void*>(lua.get_integer());
52+
match_found_func(found_address);
53+
return;
54+
}
55+
4956
constexpr const char* global_register_func_name = "Register";
5057
constexpr const char* global_on_match_found_func_name = "OnMatchFound";
5158

0 commit comments

Comments
 (0)