Skip to content

Commit 6056e42

Browse files
committed
fixup rebase
1 parent 4c03b56 commit 6056e42

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

UE4SS/include/Mod/LuaMod.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ namespace RC
9494
static inline std::unordered_map<SystemStringType, LuaCallbackData> m_custom_command_lua_pre_callbacks;
9595
static inline std::vector<SimpleLuaAction> m_game_thread_actions{};
9696
// This is storage that persists through hot-reloads.
97-
static inline std::unordered_map<std::string, SharedLuaVariable> m_shared_lua_variables{};
98-
static inline std::unordered_map<StringType, LuaCallbackData> m_custom_event_callbacks{};
97+
static inline std::unordered_map<SystemStringType, SharedLuaVariable> m_shared_lua_variables{};
98+
static inline std::unordered_map<SystemStringType, LuaCallbackData> m_custom_event_callbacks{};
9999
static inline std::vector<LuaCallbackData> m_load_map_pre_callbacks{};
100100
static inline std::vector<LuaCallbackData> m_load_map_post_callbacks{};
101101
static inline std::vector<LuaCallbackData> m_init_game_state_pre_callbacks{};

UE4SS/src/Mod/LuaMod.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@
2626
#include <LuaType/LuaModRef.hpp>
2727
#include <LuaType/LuaUClass.hpp>
2828
#include <LuaType/LuaUObject.hpp>
29+
#include <LuaType/LuaFURL.hpp>
30+
2931

3032
#ifdef HAS_CPPMOD
31-
#include <LuaType/LuaFURL.hpp>
3233
#include <Mod/CppMod.hpp>
3334
#endif
3435

36+
3537
#include <Mod/LuaMod.hpp>
3638
#pragma warning(disable : 4005)
3739
#include <GUI/Dumpers.hpp>

deps/first/ASMHelper/src/ASMHelper.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace RC::ASM
1010
{
11-
auto get_first_instruction_at_address(void* in_instruction_ptr) -> std::pair<Instruction, std::array<ZydisDecodedOperand, ZYDIS_MAX_OPERAND_COUNT>>
11+
auto get_first_instruction_at_address(void* in_instruction_ptr) -> Instruction
1212
{
1313
auto instruction_ptr = static_cast<uint8_t*>(in_instruction_ptr);
1414
ZydisDecoder decoder{};
@@ -25,9 +25,9 @@ namespace RC::ASM
2525

2626
auto resolve_absolute_address(void* in_instruction_ptr) -> void*
2727
{
28-
auto [instruction, operands] = get_first_instruction_at_address(in_instruction_ptr);
28+
auto instruction = get_first_instruction_at_address(in_instruction_ptr);
2929
ZyanU64 resolved_address{};
30-
if (ZYAN_SUCCESS(ZydisCalcAbsoluteAddress(&instruction.raw, &operands[0], std::bit_cast<ZyanU64>(in_instruction_ptr), &resolved_address)))
30+
if (ZYAN_SUCCESS(ZydisCalcAbsoluteAddress(&instruction.raw, &instruction.operands[0], std::bit_cast<ZyanU64>(in_instruction_ptr), &resolved_address)))
3131
{
3232
return std::bit_cast<void*>(resolved_address);
3333
}
@@ -49,7 +49,7 @@ namespace RC::ASM
4949

5050
auto resolve_function_address_from_potential_jmp(void* function_ptr) -> void*
5151
{
52-
auto [instruction, _] = get_first_instruction_at_address(function_ptr);
52+
auto instruction = get_first_instruction_at_address(function_ptr);
5353
if (instruction.raw.mnemonic == ZYDIS_MNEMONIC_JMP || instruction.raw.mnemonic == ZYDIS_MNEMONIC_CALL)
5454
{
5555
if (auto resolved_address = resolve_jmp(instruction.address); resolved_address)

0 commit comments

Comments
 (0)