Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1.6.4 #650

Merged
merged 10 commits into from
Mar 29, 2024
6 changes: 3 additions & 3 deletions Code/client/Games/Fallout4/TESObjectREFR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include <Games/Overrides.h>

TP_THIS_FUNCTION(TActivate, void, TESObjectREFR, TESObjectREFR* apActivator, TESBoundObject* apObjectToGet, int32_t aCount, bool aDefaultProcessing, bool aFromScript, bool aIsLooping);
TP_THIS_FUNCTION(TActivate, bool, TESObjectREFR, TESObjectREFR* apActivator, TESBoundObject* apObjectToGet, int32_t aCount, bool aDefaultProcessing, bool aFromScript, bool aIsLooping);
TP_THIS_FUNCTION(TAddInventoryItem, void, TESObjectREFR, TESBoundObject* apObject, ExtraDataList* apExtraData, uint32_t aCount, TESObjectREFR* apOldContainer, void* apUnk1, void* apUnk2);
TP_THIS_FUNCTION(TRemoveInventoryItem, uint32_t*, TESObjectREFR, uint32_t* apUnk1, void* apUnk2);

Expand Down Expand Up @@ -139,12 +139,12 @@ const BGSEquipSlot* TESObjectREFR::GetEquipSlot(uint32_t aEquipIndex) const noex
return TiltedPhoques::ThisCall(getEquipSlot, this, aEquipIndex);
}

void TESObjectREFR::Activate(TESObjectREFR* apActivator, TESBoundObject* apObjectToGet, int32_t aCount, bool aDefaultProcessing, bool aFromScript, bool aIsLooping) noexcept
bool TESObjectREFR::Activate(TESObjectREFR* apActivator, TESBoundObject* apObjectToGet, int32_t aCount, bool aDefaultProcessing, bool aFromScript, bool aIsLooping) noexcept
{
return TiltedPhoques::ThisCall(RealActivate, this, apActivator, apObjectToGet, aCount, aDefaultProcessing, aFromScript, aIsLooping);
}

void TP_MAKE_THISCALL(HookActivate, TESObjectREFR, TESObjectREFR* apActivator, TESBoundObject* apObjectToGet, int aCount, bool aDefaultProcessing, bool aFromScript, bool aIsLooping)
bool TP_MAKE_THISCALL(HookActivate, TESObjectREFR, TESObjectREFR* apActivator, TESBoundObject* apObjectToGet, int aCount, bool aDefaultProcessing, bool aFromScript, bool aIsLooping)
{
auto* pActivator = Cast<Actor>(apActivator);
if (pActivator)
Expand Down
2 changes: 1 addition & 1 deletion Code/client/Games/Fallout4/TESObjectREFR.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ struct TESObjectREFR : TESForm
void PayGold(int32_t aAmount) noexcept;
void PayGoldToContainer(TESObjectREFR* pContainer, int32_t aAmount) noexcept;

void Activate(TESObjectREFR* apActivator, TESBoundObject* apObjectToGet, int32_t aCount, bool aDefaultProcessing, bool aFromScript, bool aIsLooping) noexcept;
bool Activate(TESObjectREFR* apActivator, TESBoundObject* apObjectToGet, int32_t aCount, bool aDefaultProcessing, bool aFromScript, bool aIsLooping) noexcept;

Lock* CreateLock() noexcept;
void LockChange() noexcept;
Expand Down
6 changes: 3 additions & 3 deletions Code/client/Games/Skyrim/TESObjectREFR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <EquipManager.h>
#include <DefaultObjectManager.h>

TP_THIS_FUNCTION(TActivate, void, TESObjectREFR, TESObjectREFR* apActivator, uint8_t aUnk1, TESBoundObject* apObjectToGet, int32_t aCount, char aDefaultProcessing);
TP_THIS_FUNCTION(TActivate, bool, TESObjectREFR, TESObjectREFR* apActivator, uint8_t aUnk1, TESBoundObject* apObjectToGet, int32_t aCount, char aDefaultProcessing);
TP_THIS_FUNCTION(TAddInventoryItem, void, TESObjectREFR, TESBoundObject* apItem, ExtraDataList* apExtraData, int32_t aCount, TESObjectREFR* apOldOwner);
TP_THIS_FUNCTION(
TRemoveInventoryItem, BSPointerHandle<TESObjectREFR>*, TESObjectREFR, BSPointerHandle<TESObjectREFR>* apResult, TESBoundObject* apItem, int32_t aCount, ITEM_REMOVE_REASON aReason, ExtraDataList* apExtraList, TESObjectREFR* apMoveToRef, const NiPoint3* apDropLoc, const NiPoint3* apRotate);
Expand Down Expand Up @@ -520,7 +520,7 @@ void TESObjectREFR::UpdateItemList(TESForm* pUnkForm) noexcept
TiltedPhoques::ThisCall(updateItemList, this, pUnkForm);
}

void TESObjectREFR::Activate(TESObjectREFR* apActivator, uint8_t aUnk1, TESBoundObject* aObjectToGet, int32_t aCount, char aDefaultProcessing) noexcept
bool TESObjectREFR::Activate(TESObjectREFR* apActivator, uint8_t aUnk1, TESBoundObject* aObjectToGet, int32_t aCount, char aDefaultProcessing) noexcept
{
ScopedActivateOverride _;

Expand Down Expand Up @@ -590,7 +590,7 @@ bool TP_MAKE_THISCALL(HookPlayAnimation, void, uint32_t auiStackID, TESObjectREF
return TiltedPhoques::ThisCall(RealPlayAnimation, apThis, auiStackID, apSelf, apEventName);
}

void TP_MAKE_THISCALL(HookActivate, TESObjectREFR, TESObjectREFR* apActivator, uint8_t aUnk1, TESBoundObject* apObjectToGet, int32_t aCount, char aDefaultProcessing)
bool TP_MAKE_THISCALL(HookActivate, TESObjectREFR, TESObjectREFR* apActivator, uint8_t aUnk1, TESBoundObject* apObjectToGet, int32_t aCount, char aDefaultProcessing)
{
Actor* pActivator = Cast<Actor>(apActivator);

Expand Down
2 changes: 1 addition & 1 deletion Code/client/Games/Skyrim/TESObjectREFR.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ struct TESObjectREFR : TESForm
void PayGold(int32_t aAmount) noexcept;
void PayGoldToContainer(TESObjectREFR* pContainer, int32_t aAmount) noexcept;

void Activate(TESObjectREFR* apActivator, uint8_t aUnk1, TESBoundObject* apObjectToGet, int32_t aCount, char aDefaultProcessing) noexcept;
bool Activate(TESObjectREFR* apActivator, uint8_t aUnk1, TESBoundObject* apObjectToGet, int32_t aCount, char aDefaultProcessing) noexcept;

bool PlayAnimationAndWait(BSFixedString* apAnimation, BSFixedString* apEventName) noexcept;
bool PlayAnimation(BSFixedString* apEventName) noexcept;
Expand Down
2 changes: 2 additions & 0 deletions Code/client/Services/Debug/DebugService.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <BranchInfo.h>

#include <Havok/hkbStateMachine.h>
#include <Structs/AnimationGraphDescriptorManager.h>

Expand Down
4 changes: 3 additions & 1 deletion Code/client/TiltedOnlineApp.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <BranchInfo.h>

#if (!IS_MASTER)
#include "CrashHandler.h"
#else
Expand Down Expand Up @@ -36,6 +38,6 @@ struct TiltedOnlineApp final : App
#if (!IS_MASTER)
CrashHandler m_crashHandler;
#else
ScopedCrashHandler m_crashHandler;
//ScopedCrashHandler m_crashHandler;
#endif
};
2 changes: 0 additions & 2 deletions Code/client/TiltedOnlinePCH.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#define NOMINMAX
#endif

#include <BranchInfo.h>

#include <TiltedCore/Platform.hpp>

#if defined(TP_SKYRIM) && TP_PLATFORM_64
Expand Down
2 changes: 1 addition & 1 deletion Code/client/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ target(name)
"kernel32")
end

add_requires("tiltedcore", {debug = true})
add_requires("tiltedcore v0.2.7", {debug = true})

build_client("SkyrimTogetherClient", "TP_SKYRIM=1")
build_client("FalloutTogetherClient", "TP_FALLOUT=1")
2 changes: 2 additions & 0 deletions Code/immersive_launcher/Launcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

#include "base/dialogues/win/TaskDialog.h"

#include <BranchInfo.h>

// These symbols are defined within the client code skyrimtogetherclient
extern void InstallStartHook();
extern void RunTiltedApp();
Expand Down
2 changes: 1 addition & 1 deletion Code/server/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local function istable(t) return type(t) == 'table' end

add_requires("sol2", {configs = {lua = "lua"}})
add_requires("sol2 v3.3.0", {configs = {lua = "lua"}})

local function build_server()
set_kind("shared")
Expand Down
2 changes: 1 addition & 1 deletion Libraries/TiltedUI
Submodule TiltedUI updated 1 files
+6 −4 xmake.lua
34 changes: 13 additions & 21 deletions xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set_xmakever("2.6.5")
set_xmakever("2.8.5")

-- If newer version of xmake, remove ccache until it actually works
if set_policy ~= nil then
Expand Down Expand Up @@ -32,16 +32,16 @@ end

add_requires(
"entt v3.10.0",
"recastnavigation",
"tiltedcore",
"cryptopp",
"spdlog",
"cpp-httplib",
"gtest",
"mem",
"glm",
"sentry-native",
"zlib")
"recastnavigation v1.6.0",
"tiltedcore v0.2.7",
"cryptopp 8.9.0",
"spdlog v1.13.0",
"cpp-httplib 0.14.0",
"gtest v1.14.0",
"mem 1.0.0",
"glm 0.9.9+8",
"sentry-native 0.7.1",
"zlib v1.3.1")

add_requireconfs("cpp-httplib", {configs = {ssl = true}})
add_requireconfs("sentry-native", { configs = { backend = "crashpad" } })
Expand All @@ -54,17 +54,9 @@ add_requireconfs("magnum-integration.imgui", { override = true })

if is_plat("windows") then
add_requires(
"discord",
"imgui"
"discord 3.2.1",
"imgui v1.89.7"
)
--[[
add_requires(
"discord",
"imgui",
"magnum",
"magnum-integration"
)
--]]
end

before_build(function (target)
Expand Down
Loading