forked from zoller27osu/Quest-Trick-Saber
-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.cpp
412 lines (309 loc) · 19.9 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
#include "../include/main.hpp"
#include "../include/PluginConfig.hpp"
#include "../include/TrickManager.hpp"
#include "ConfigEnums.hpp"
#include "UnityEngine/Resources.hpp"
#include "GlobalNamespace/GameSongController.hpp"
#include "UnityEngine/SceneManagement/SceneManager.hpp"
#include "GlobalNamespace/GamePause.hpp"
#include "GlobalNamespace/OculusVRHelper.hpp"
#include "GlobalNamespace/SaberBurnMarkArea.hpp"
#include "GlobalNamespace/SaberBurnMarkSparkles.hpp"
#include "GlobalNamespace/ObstacleSaberSparkleEffectManager.hpp"
#include "custom-types/shared/register.hpp"
#include "GlobalNamespace/GameScenesManager.hpp"
#include "System/Action.hpp"
#include "System/Action_1.hpp"
#include "Zenject/DiContainer.hpp"
#include "GlobalNamespace/ScenesTransitionSetupDataSO.hpp"
#include "UnityEngine/RectOffset.hpp"
#include "UnityEngine/Events/UnityAction.hpp"
#include "HMUI/Touchable.hpp"
#include "questui/shared/CustomTypes/Components/ExternalComponents.hpp"
#include "bs-utils/shared/utils.hpp"
#include <cstdlib>
#include <string>
#ifdef HAS_CODEGEN
#define AddConfigValueIncrementEnum(parent, enumConfigValue, enumClass, enumMap) BeatSaberUI::CreateIncrementSetting(parent, enumConfigValue.GetName() + " " + enumMap.at((int) enumConfigValue.GetValue()), 0, 1, (float) enumConfigValue.GetValue(), 0,(int) enumMap.size() - 1, il2cpp_utils::MakeDelegate<UnityEngine::Events::UnityAction_1<float>*>(classof(UnityEngine::Events::UnityAction_1<float>*), (void*)nullptr, +[](float value) { enumConfigValue.SetValue((int)value); }))
#endif
using namespace GlobalNamespace;
using namespace QuestUI;
// Returns a logger, useful for printing debug messages
Logger& getLogger() {
static auto* logger = new Logger(modInfo);
return *logger;
}
Configuration& getConfig() {
static Configuration configuration(modInfo);
return configuration;
}
extern "C" void setup(ModInfo& info) {
info.id = "TrickSaber";
info.version = "0.3.1";
modInfo = info;
getConfig().Load();
getPluginConfig().Init(info);
getConfig().Reload();
getConfig().Write();
getLogger().info("Leaving setup!");
}
Saber* FakeSaber = nullptr;
Saber* RealSaber = nullptr;
TrickManager leftSaber;
TrickManager rightSaber;
MAKE_HOOK_OFFSETLESS(SceneManager_Internal_SceneLoaded, void, UnityEngine::SceneManagement::Scene scene, UnityEngine::SceneManagement::LoadSceneMode mode) {
getLogger().info("SceneManager_Internal_SceneLoaded");
if (auto* nameOpt = scene.get_name()) {
auto* name = nameOpt;
auto str = to_utf8(csstrtostr(name));
getLogger().debug("Scene name internal: %s", str.c_str());
}
FakeSaber = nullptr;
RealSaber = nullptr;
TrickManager::StaticClear();
leftSaber.Clear();
rightSaber.Clear();
SceneManager_Internal_SceneLoaded(scene, mode);
}
MAKE_HOOK_OFFSETLESS(GameScenesManager_PushScenes, void, GlobalNamespace::GameScenesManager* self, GlobalNamespace::ScenesTransitionSetupDataSO* scenesTransitionSetupData,
float minDuration, System::Action* afterMinDurationCallback,
System::Action_1<Zenject::DiContainer*>* finishCallback) {
getLogger().debug("GameScenesManager_PushScenes");
GameScenesManager_PushScenes(self, scenesTransitionSetupData, minDuration, afterMinDurationCallback, finishCallback);
getConfig().Reload();
if (getPluginConfig().EnableTrickCutting.GetValue() || getPluginConfig().SlowmoDuringThrow.GetValue()) {
bs_utils::Submission::disable(modInfo);
} else {
bs_utils::Submission::enable(modInfo);
}
objectCount = 0;
getLogger().debug("Leaving GameScenesManager_PushScenes");
}
MAKE_HOOK_OFFSETLESS(SaberManager_Start, void, SaberManager* self) {
SaberManager_Start(self);
saberManager = self;
getLogger().debug("SaberManager_Start");
}
MAKE_HOOK_OFFSETLESS(Saber_Start, void, Saber* self) {
getLogger().debug("Saber_Start");
Saber_Start(self);
getLogger().debug("Saber_Start original called name: %s", to_utf8(csstrtostr(self->get_name())).c_str());
if (to_utf8(csstrtostr(self->get_name())).starts_with(saberPrefix)) {
getLogger().debug("Ignoring trick start");
return;
}
// saber->sabertypeobject->sabertype
SaberType saberType = self->saberType->saberType;
getLogger().debug("SaberType: %i", saberType);
auto *vrControllers = UnityEngine::Resources::FindObjectsOfTypeAll<VRController*>();
getLogger().info("VR controllers: %i", vrControllers->Length());
for (int i = 0; i<vrControllers->Length(); i++) {
auto* controller = vrControllers->values[i];
}
if (saberType == 0) {
getLogger().debug("Left?");
// leftSaber.VRController = vrControllersManager->get_node();
leftSaber.Saber = self;
leftSaber._isLeftSaber = true;
leftSaber.other = &rightSaber;
leftSaber.Start();
} else {
getLogger().debug("Right?");
// rightSaber.VRController = vrControllersManager->rightVRController;
rightSaber.Saber = self;
rightSaber.other = &leftSaber;
rightSaber.Start();
}
RealSaber = self;
}
MAKE_HOOK_OFFSETLESS(Saber_ManualUpdate, void, Saber* self) {
Saber_ManualUpdate(self);
if (self == leftSaber.Saber) {
leftSaber.Update();
} else if (self == rightSaber.Saber) {
// rightSaber.LogEverything();
rightSaber.Update();
}
}
static std::vector<System::Type*> tBurnTypes;
void DisableBurnMarks(int saberType) {
if (!FakeSaber) {
static auto* tSaber = csTypeOf(Saber*);
auto* core = UnityEngine::GameObject::Find(il2cpp_utils::createcsstr("GameCore"));
FakeSaber = core->AddComponent<Saber*>();
FakeSaber->set_enabled(false);
getLogger().info("FakeSaber.isActiveAndEnabled: %i",FakeSaber->get_isActiveAndEnabled());
auto* saberTypeObj = RealSaber->saberType;
FakeSaber->saberType = saberTypeObj;
getLogger().info("FakeSaber SaberType: %i", FakeSaber->saberType);
}
for (auto* type : tBurnTypes) {
auto *components = UnityEngine::Object::FindObjectsOfType(type);
for (il2cpp_array_size_t i = 0; i < components->Length(); i++) {
auto *sabers = CRASH_UNLESS(il2cpp_utils::GetFieldValue<Array<Saber *> *>(components->values[i], "_sabers"));
sabers->values[saberType] = FakeSaber;
}
}
}
void EnableBurnMarks(int saberType) {
for (auto *type : tBurnTypes) {
auto *components = UnityEngine::Object::FindObjectsOfType(type);
for (int i = 0; i < components->Length(); i++) {
getLogger().debug("Burn Type: %s", components->values[i]->get_name());
auto *sabers = CRASH_UNLESS(il2cpp_utils::GetFieldValue<Array<Saber *> *>(components->values[i], "_sabers"));
sabers->values[saberType] = saberType ? saberManager->rightSaber : saberManager->leftSaber;
}
}
}
MAKE_HOOK_OFFSETLESS(FixedUpdate, void, GlobalNamespace::OculusVRHelper* self) {
FixedUpdate(self);
TrickManager::StaticFixedUpdate();
}
MAKE_HOOK_OFFSETLESS(Pause, void, GlobalNamespace::GamePause* self) {
leftSaber.PauseTricks();
rightSaber.PauseTricks();
Pause(self);
TrickManager::StaticPause();
getLogger().debug("pause: %i", self->pause);
}
MAKE_HOOK_OFFSETLESS(Resume, void, GlobalNamespace::GamePause* self) {
Resume(self);
TrickManager::StaticResume();
leftSaber.ResumeTricks();
rightSaber.ResumeTricks();
getLogger().debug("pause: %i", self->pause);
}
MAKE_HOOK_OFFSETLESS(AudioTimeSyncController_Start, void, AudioTimeSyncController* self) {
AudioTimeSyncController_Start(self);
audioTimeSyncController = self;
getLogger().debug("audio time controller: %i");
}
MAKE_HOOK_OFFSETLESS(SaberClashChecker_AreSabersClashing, bool, SaberClashChecker* self) {
bool val = SaberClashChecker_AreSabersClashing(self);
return (rightSaber.doClashEffect && leftSaber.doClashEffect) && val;
}
MAKE_HOOK_OFFSETLESS(VRController_Update, void, GlobalNamespace::VRController* self) {
VRController_Update(self);
if (self->get_node() == UnityEngine::XR::XRNode::LeftHand) {
leftSaber.VRController = self;
}
if (self->get_node() == UnityEngine::XR::XRNode::RightHand) {
rightSaber.VRController = self;
}
}
MAKE_HOOK_OFFSETLESS(SpawnNote, void, Il2CppObject* self, Il2CppObject* noteData, float cutDirectionAngleOffset) {
objectCount++;
getLogger().debug("Object count note increase %d", objectCount);
SpawnNote(self, noteData, cutDirectionAngleOffset);
}
MAKE_HOOK_OFFSETLESS(SpawnBomb, void, Il2CppObject* self, Il2CppObject* noteData) {
objectCount++;
getLogger().debug("Object count bomb increase %d", objectCount);
SpawnBomb(self, noteData);
}
MAKE_HOOK_OFFSETLESS(NoteCut, void, Il2CppObject* self, Il2CppObject* noteController, Il2CppObject* noteCutInfo) {
objectCount--;
getLogger().debug("Object count note cut decrease %d", objectCount);
if (objectCount < 0) objectCount = 0;
NoteCut(self, noteController, noteCutInfo);
}
MAKE_HOOK_OFFSETLESS(NoteMissed, void, Il2CppObject* self, Il2CppObject* noteController) {
objectCount--;
getLogger().debug("Object count decrease %d", objectCount);
if (objectCount < 0) objectCount = 0;
NoteMissed(self, noteController);
}
void DidActivate(HMUI::ViewController* self, bool firstActivation, bool addedToHierarchy, bool screenSystemEnabling){
getLogger().info("DidActivate: %p, %d, %d, %d", self, firstActivation, addedToHierarchy, screenSystemEnabling);
if(firstActivation) {
self->get_gameObject()->AddComponent<HMUI::Touchable*>();
UnityEngine::GameObject* container = BeatSaberUI::CreateScrollableSettingsContainer(self->get_transform());
auto* textGrid = container;
// textGrid->set_spacing(1);
BeatSaberUI::CreateText(textGrid->get_transform(), "TrickSaber settings. Restart to avoid crashes or side-effects.");
BeatSaberUI::CreateText(textGrid->get_transform(), "Settings are saved when changed.");
// buttonsGrid->set_spacing(1);
auto* boolGrid = container;
BeatSaberUI::CreateText(boolGrid->get_transform(), "Toggles and switches for buttons.", false);
BeatSaberUI::AddHoverHint(AddConfigValueToggle(boolGrid->get_transform(), getPluginConfig().ReverseTrigger)->get_gameObject(),"Inverts the trigger button");
BeatSaberUI::AddHoverHint(AddConfigValueToggle(boolGrid->get_transform(), getPluginConfig().ReverseButtonOne)->get_gameObject(),"Inverts the button one toggle.");
BeatSaberUI::AddHoverHint(AddConfigValueToggle(boolGrid->get_transform(), getPluginConfig().ReverseButtonTwo)->get_gameObject(),"Inverts the button two toggle.");
BeatSaberUI::AddHoverHint(AddConfigValueToggle(boolGrid->get_transform(), getPluginConfig().ReverseGrip)->get_gameObject(),"Inverts the grip toggle.");
BeatSaberUI::AddHoverHint(AddConfigValueToggle(boolGrid->get_transform(), getPluginConfig().ReverseThumbstick)->get_gameObject(),"Inverts the thumbstick direction.");
BeatSaberUI::CreateText(boolGrid->get_transform(), "Preferences.", false);
BeatSaberUI::AddHoverHint(AddConfigValueToggle(boolGrid->get_transform(), getPluginConfig().NoTricksWhileNotes)->get_gameObject(),"Doesn't allow tricks while notes are on screen");
BeatSaberUI::AddHoverHint(AddConfigValueToggle(boolGrid->get_transform(), getPluginConfig().VibrateOnReturn)->get_gameObject(),"Makes the controller vibrate when it returns from being thrown");
BeatSaberUI::AddHoverHint(AddConfigValueToggle(boolGrid->get_transform(), getPluginConfig().IsVelocityDependent)->get_gameObject(),"Makes the spin speed velocity dependent.");
BeatSaberUI::AddHoverHint(AddConfigValueToggle(boolGrid->get_transform(), getPluginConfig().EnableTrickCutting)->get_gameObject(),"Allows for physics to apply with the tricks. DOES NOT WORK AND IS VERY BROKEN.");
BeatSaberUI::AddHoverHint(AddConfigValueToggle(boolGrid->get_transform(), getPluginConfig().CompleteRotationMode)->get_gameObject(),"Allows for the spin rotation to go all directions.");
BeatSaberUI::AddHoverHint(AddConfigValueToggle(boolGrid->get_transform(), getPluginConfig().SlowmoDuringThrow)->get_gameObject(),"Makes the thrown saber act slow-mo like.");
auto* floatGrid = container;
BeatSaberUI::CreateText(floatGrid->get_transform(), "Numbers and math. Threshold values", false);
// floatGrid->set_spacing(1);
BeatSaberUI::AddHoverHint(AddConfigValueIncrementFloat(floatGrid->get_transform(), getPluginConfig().GripThreshold, 2, 0.01, 0, 1)->get_gameObject(),"The deadzone or minimum amount of input required to trigger the grip.");
BeatSaberUI::AddHoverHint(AddConfigValueIncrementFloat(floatGrid->get_transform(), getPluginConfig().ControllerSnapThreshold, 2, 0.01, 0, 1)->get_gameObject(),"The deadzone or minimum amount of input required for the controller to snap.");
BeatSaberUI::AddHoverHint(AddConfigValueIncrementFloat(floatGrid->get_transform(), getPluginConfig().ThumbstickThreshold, 2, 0.01, 0, 1)->get_gameObject(),"The deadzone or minimum amount of input required to trigger the thumbstick.");
BeatSaberUI::AddHoverHint(AddConfigValueIncrementFloat(floatGrid->get_transform(), getPluginConfig().TriggerThreshold, 2, 0.01, 0, 1)->get_gameObject(),"The deadzone or minimum amount of input required to trigger.");
BeatSaberUI::CreateText(floatGrid->get_transform(), "Speed and velocity manipulation", false);
BeatSaberUI::AddHoverHint(AddConfigValueIncrementFloat(floatGrid->get_transform(), getPluginConfig().SpinSpeed, 1, 0.1, 0, 10)->get_gameObject(),"The speed the saber spins at.");
BeatSaberUI::AddHoverHint(AddConfigValueIncrementFloat(floatGrid->get_transform(), getPluginConfig().ThrowVelocity, 1, 0.1, 0, 10)->get_gameObject(),"The velocity of the saber when you throw it.");
BeatSaberUI::AddHoverHint(AddConfigValueIncrementFloat(floatGrid->get_transform(), getPluginConfig().ReturnSpeed, 1, 0.1, 0, 10)->get_gameObject(),"The speed in which the saber returns to your hand.");
BeatSaberUI::CreateText(floatGrid->get_transform(), "Technical numbers, please avoid.", false);
BeatSaberUI::AddHoverHint(AddConfigValueIncrementFloat(floatGrid->get_transform(), getPluginConfig().SlowmoStepAmount, 1, 0.1, 0, 10)->get_gameObject(),"The slow motion time scale amount.");
BeatSaberUI::AddHoverHint(AddConfigValueIncrementFloat(floatGrid->get_transform(), getPluginConfig().SlowmoAmount, 2, 0.1, 0, 10)->get_gameObject(),"The intensity of the slow motion.");
BeatSaberUI::AddHoverHint(AddConfigValueIncrementFloat(floatGrid->get_transform(), getPluginConfig().VelocityBufferSize, 0, 1, 0, 10)->get_gameObject(),"Technical number for the size of the list that holds velocity throughout time.");
auto* actionGrid = container;
BeatSaberUI::CreateText(actionGrid->get_transform(), "Actions Remapping (UI is very funky here)", false);
// actionGrid->set_name(il2cpp_utils::createcsstr("Actions"));
// actionGrid->set_spacing(1);
BeatSaberUI::AddHoverHint(AddConfigValueIncrementEnum(actionGrid->get_transform(), getPluginConfig().TriggerAction, TrickAction, ACTION_NAMES)->get_gameObject(),"The action the trigger performs.");
BeatSaberUI::AddHoverHint(AddConfigValueIncrementEnum(actionGrid->get_transform(), getPluginConfig().ButtonOneAction, TrickAction, ACTION_NAMES)->get_gameObject(),"The action the button one performs.");
BeatSaberUI::AddHoverHint(AddConfigValueIncrementEnum(actionGrid->get_transform(), getPluginConfig().ButtonTwoAction, TrickAction, ACTION_NAMES)->get_gameObject(),"The action the button two performs.");
BeatSaberUI::AddHoverHint(AddConfigValueIncrementEnum(actionGrid->get_transform(), getPluginConfig().GripAction, TrickAction, ACTION_NAMES)->get_gameObject(),"The action the grip button performs.");
BeatSaberUI::AddHoverHint(AddConfigValueIncrementEnum(actionGrid->get_transform(), getPluginConfig().ThumbstickAction, TrickAction, ACTION_NAMES)->get_gameObject(),"The action the thumbstick performs.");
auto* miscGrid = container;
BeatSaberUI::CreateText(miscGrid->get_transform(), "Misc", false);
// miscGrid->set_spacing(1);
BeatSaberUI::AddHoverHint(AddConfigValueIncrementEnum(miscGrid->get_transform(), getPluginConfig().SpinDirection, TrickAction, SPIN_DIR_NAMES)->get_gameObject(),"The direction of spinning. Still dependent on reverse button");
BeatSaberUI::AddHoverHint(AddConfigValueIncrementEnum(miscGrid->get_transform(), getPluginConfig().ThumbstickDirection, TrickAction, THUMBSTICK_DIR_NAMES)->get_gameObject(),"The direction of the thumbsticks for tricks. ");
}
}
void DidDeActivate(HMUI::ViewController* self,bool removedFromHierarchy, bool screenSystemDisabling){
getLogger().info("Saving config because of menu");
getConfig().Write();
getConfig().Reload();
}
extern "C" void load() {
il2cpp_functions::Init();
// TODO: config menus
getLogger().info("Installing hooks...");
INSTALL_HOOK_OFFSETLESS(getLogger(), SceneManager_Internal_SceneLoaded, il2cpp_utils::FindMethodUnsafe("UnityEngine.SceneManagement", "SceneManager", "Internal_SceneLoaded", 2));
INSTALL_HOOK_OFFSETLESS(getLogger(), GameScenesManager_PushScenes, il2cpp_utils::FindMethodUnsafe("", "GameScenesManager", "PushScenes", 4));
INSTALL_HOOK_OFFSETLESS(getLogger(), Saber_Start, il2cpp_utils::FindMethod("", "Saber", "Start"));
INSTALL_HOOK_OFFSETLESS(getLogger(), Saber_ManualUpdate, il2cpp_utils::FindMethod("", "Saber", "ManualUpdate"));
INSTALL_HOOK_OFFSETLESS(getLogger(), FixedUpdate, il2cpp_utils::FindMethod("", "OculusVRHelper", "FixedUpdate"));
// INSTALL_HOOK_OFFSETLESS(LateUpdate, il2cpp_utils::FindMethod("", "SaberBurnMarkSparkles", "LateUpdate"));
INSTALL_HOOK_OFFSETLESS(getLogger(), Pause, il2cpp_utils::FindMethod("", "GamePause", "Pause"));
INSTALL_HOOK_OFFSETLESS(getLogger(), Resume, il2cpp_utils::FindMethod("", "GamePause", "Resume"));
INSTALL_HOOK_OFFSETLESS(getLogger(), AudioTimeSyncController_Start, il2cpp_utils::FindMethod("", "AudioTimeSyncController", "Start"));
INSTALL_HOOK_OFFSETLESS(getLogger(), SaberManager_Start, il2cpp_utils::FindMethod("", "SaberManager", "Start"));
INSTALL_HOOK_OFFSETLESS(getLogger(), SaberClashChecker_AreSabersClashing, il2cpp_utils::FindMethodUnsafe("", "SaberClashChecker", "AreSabersClashing", 1));
// INSTALL_HOOK_OFFSETLESS(getLogger(), SaberClashEffect_Disable, il2cpp_utils::FindMethod("", "SaberClashEffect", "OnDisable"));
INSTALL_HOOK_OFFSETLESS(getLogger(), VRController_Update, il2cpp_utils::FindMethod("", "VRController", "Update"));
INSTALL_HOOK_OFFSETLESS(getLogger(), SpawnNote, il2cpp_utils::FindMethodUnsafe("", "BeatmapObjectSpawnController", "SpawnBasicNote", 2));
INSTALL_HOOK_OFFSETLESS(getLogger(), SpawnBomb, il2cpp_utils::FindMethodUnsafe("", "BeatmapObjectSpawnController", "SpawnBombNote", 1));
INSTALL_HOOK_OFFSETLESS(getLogger(), NoteMissed, il2cpp_utils::FindMethodUnsafe("", "BeatmapObjectManager", "HandleNoteWasMissed", 1));
INSTALL_HOOK_OFFSETLESS(getLogger(), NoteCut, il2cpp_utils::FindMethodUnsafe("", "BeatmapObjectManager", "HandleNoteWasCut", 2));
// INSTALL_HOOK_OFFSETLESS(getLogger(), VRController_Update, il2cpp_utils::FindMethodUnsafe("", "GameSongController", "StartSong", 1));
tBurnTypes.push_back(csTypeOf(GlobalNamespace::SaberBurnMarkArea*));
tBurnTypes.push_back(csTypeOf(GlobalNamespace::SaberBurnMarkSparkles*));
tBurnTypes.push_back(csTypeOf(GlobalNamespace::ObstacleSaberSparkleEffectManager*));
getLogger().info("Registering custom types");
custom_types::Register::RegisterType<TrickSaber::TrickSaberTrailData>();
getLogger().info("Registered types");
getLogger().info("Installed all hooks!");
getLogger().info("Starting Settings UI installation...");
QuestUI::Init();
QuestUI::Register::RegisterModSettingsViewController(modInfo, DidActivate);
getLogger().info("Successfully installed Settings UI!");
}