Skip to content

Commit 1d819b3

Browse files
Merge pull request #650 from tiltedphoques/dev
V1.6.4
2 parents c97dc6c + fad3eca commit 1d819b3

File tree

12 files changed

+31
-35
lines changed

12 files changed

+31
-35
lines changed

Code/client/Games/Fallout4/TESObjectREFR.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include <Games/Overrides.h>
1616

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

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

142-
void TESObjectREFR::Activate(TESObjectREFR* apActivator, TESBoundObject* apObjectToGet, int32_t aCount, bool aDefaultProcessing, bool aFromScript, bool aIsLooping) noexcept
142+
bool TESObjectREFR::Activate(TESObjectREFR* apActivator, TESBoundObject* apObjectToGet, int32_t aCount, bool aDefaultProcessing, bool aFromScript, bool aIsLooping) noexcept
143143
{
144144
return TiltedPhoques::ThisCall(RealActivate, this, apActivator, apObjectToGet, aCount, aDefaultProcessing, aFromScript, aIsLooping);
145145
}
146146

147-
void TP_MAKE_THISCALL(HookActivate, TESObjectREFR, TESObjectREFR* apActivator, TESBoundObject* apObjectToGet, int aCount, bool aDefaultProcessing, bool aFromScript, bool aIsLooping)
147+
bool TP_MAKE_THISCALL(HookActivate, TESObjectREFR, TESObjectREFR* apActivator, TESBoundObject* apObjectToGet, int aCount, bool aDefaultProcessing, bool aFromScript, bool aIsLooping)
148148
{
149149
auto* pActivator = Cast<Actor>(apActivator);
150150
if (pActivator)

Code/client/Games/Fallout4/TESObjectREFR.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ struct TESObjectREFR : TESForm
188188
void PayGold(int32_t aAmount) noexcept;
189189
void PayGoldToContainer(TESObjectREFR* pContainer, int32_t aAmount) noexcept;
190190

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

193193
Lock* CreateLock() noexcept;
194194
void LockChange() noexcept;

Code/client/Games/Skyrim/TESObjectREFR.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <EquipManager.h>
2525
#include <DefaultObjectManager.h>
2626

27-
TP_THIS_FUNCTION(TActivate, void, TESObjectREFR, TESObjectREFR* apActivator, uint8_t aUnk1, TESBoundObject* apObjectToGet, int32_t aCount, char aDefaultProcessing);
27+
TP_THIS_FUNCTION(TActivate, bool, TESObjectREFR, TESObjectREFR* apActivator, uint8_t aUnk1, TESBoundObject* apObjectToGet, int32_t aCount, char aDefaultProcessing);
2828
TP_THIS_FUNCTION(TAddInventoryItem, void, TESObjectREFR, TESBoundObject* apItem, ExtraDataList* apExtraData, int32_t aCount, TESObjectREFR* apOldOwner);
2929
TP_THIS_FUNCTION(
3030
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);
@@ -520,7 +520,7 @@ void TESObjectREFR::UpdateItemList(TESForm* pUnkForm) noexcept
520520
TiltedPhoques::ThisCall(updateItemList, this, pUnkForm);
521521
}
522522

523-
void TESObjectREFR::Activate(TESObjectREFR* apActivator, uint8_t aUnk1, TESBoundObject* aObjectToGet, int32_t aCount, char aDefaultProcessing) noexcept
523+
bool TESObjectREFR::Activate(TESObjectREFR* apActivator, uint8_t aUnk1, TESBoundObject* aObjectToGet, int32_t aCount, char aDefaultProcessing) noexcept
524524
{
525525
ScopedActivateOverride _;
526526

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

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

Code/client/Games/Skyrim/TESObjectREFR.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ struct TESObjectREFR : TESForm
176176
void PayGold(int32_t aAmount) noexcept;
177177
void PayGoldToContainer(TESObjectREFR* pContainer, int32_t aAmount) noexcept;
178178

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

181181
bool PlayAnimationAndWait(BSFixedString* apAnimation, BSFixedString* apEventName) noexcept;
182182
bool PlayAnimation(BSFixedString* apEventName) noexcept;

Code/client/Services/Debug/DebugService.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <BranchInfo.h>
2+
13
#include <Havok/hkbStateMachine.h>
24
#include <Structs/AnimationGraphDescriptorManager.h>
35

Code/client/TiltedOnlineApp.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma once
22

3+
#include <BranchInfo.h>
4+
35
#if (!IS_MASTER)
46
#include "CrashHandler.h"
57
#else
@@ -36,6 +38,6 @@ struct TiltedOnlineApp final : App
3638
#if (!IS_MASTER)
3739
CrashHandler m_crashHandler;
3840
#else
39-
ScopedCrashHandler m_crashHandler;
41+
//ScopedCrashHandler m_crashHandler;
4042
#endif
4143
};

Code/client/TiltedOnlinePCH.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#define NOMINMAX
55
#endif
66

7-
#include <BranchInfo.h>
8-
97
#include <TiltedCore/Platform.hpp>
108

119
#if defined(TP_SKYRIM) && TP_PLATFORM_64

Code/client/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ target(name)
7979
"kernel32")
8080
end
8181

82-
add_requires("tiltedcore", {debug = true})
82+
add_requires("tiltedcore v0.2.7", {debug = true})
8383

8484
build_client("SkyrimTogetherClient", "TP_SKYRIM=1")
8585
build_client("FalloutTogetherClient", "TP_FALLOUT=1")

Code/immersive_launcher/Launcher.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

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

18+
#include <BranchInfo.h>
19+
1820
// These symbols are defined within the client code skyrimtogetherclient
1921
extern void InstallStartHook();
2022
extern void RunTiltedApp();

Code/server/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local function istable(t) return type(t) == 'table' end
22

3-
add_requires("sol2", {configs = {lua = "lua"}})
3+
add_requires("sol2 v3.3.0", {configs = {lua = "lua"}})
44

55
local function build_server()
66
set_kind("shared")

0 commit comments

Comments
 (0)