Skip to content

Commit e6fc210

Browse files
committed
resolved more conflicts
1 parent 1c72ecf commit e6fc210

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

UE4SS/src/Mod/LuaMod.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3045,7 +3045,8 @@ No overload found for function 'RegisterHook'.
30453045
{
30463046
++m_last_generic_hook_id;
30473047
auto [callback_data, _] = LuaMod::m_script_hook_callbacks.emplace(UEStringToSystemString(unreal_function->GetFullName()), LuaCallbackData{lua, nullptr, {}});
3048-
callback_data->second.registry_indexes.emplace_back(LuaMod::LuaCallbackData::RegistryIndex{lua_callback_registry_index, m_last_generic_hook_id});
3048+
callback_data->second.registry_indexes.emplace_back(hook_lua,
3049+
LuaMod::LuaCallbackData::RegistryIndex{lua_callback_registry_index, m_last_generic_hook_id});
30493050
generic_pre_id = m_last_generic_hook_id;
30503051
generic_post_id = m_last_generic_hook_id;
30513052
Output::send<LogLevel::Verbose>(SYSSTR("[RegisterHook] Registered script hook ({}, {}) for {}\n"),

UE4SS/src/UE4SSProgram.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -639,13 +639,6 @@ namespace RC
639639
Unreal::UEngine::VTableLayoutMap.emplace(item_ue, offset);
640640
});
641641

642-
Output::send<Color::Blue>(SYSSTR("UEngine\n"));
643-
uint32_t uengine_size = retrieve_vtable_layout_from_ini(SYSSTR("UEngine"), [&](uint32_t index, SystemStringType& item, UEStringType& item_ue) {
644-
uint32_t offset = calculate_virtual_function_offset(index, uobjectbase_size, uobjectbaseutility_size, uobject_size);
645-
Output::send(SYSSTR("UEngine::{} = 0x{:X}\n"), item, offset);
646-
Unreal::UEngine::VTableLayoutMap.emplace(item_ue, offset);
647-
});
648-
649642
Output::send<Color::Blue>(SYSSTR("UScriptStruct::ICppStructOps\n"));
650643
retrieve_vtable_layout_from_ini(SYSSTR("UScriptStruct::ICppStructOps"), [&](uint32_t index, SystemStringType& item, UEStringType& item_ue) {
651644
uint32_t offset = calculate_virtual_function_offset(index, 0);

0 commit comments

Comments
 (0)