forked from Ryan-rsm-McKenzie/CommonLibSSE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
1,532 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#pragma once | ||
|
||
#include "RE/B/BSVRInterface.h" | ||
|
||
#ifdef SKYRIMVR | ||
namespace RE | ||
{ | ||
class BSOpenVR : public BSVRInterface | ||
{ | ||
public: | ||
struct Data238 | ||
{ | ||
std::uint64_t unk00; // 00 | ||
std::uint64_t unk08; // 08 | ||
std::uint64_t unk10; // 10 | ||
std::uint64_t unk18; // 18 | ||
std::uint64_t unk20; // 20 | ||
std::uint64_t unk28; // 28 | ||
std::uint64_t unk30; // 30 | ||
std::uint64_t unk38; // 38 | ||
}; | ||
static_assert(sizeof(Data238) == 0x40); | ||
|
||
[[nodiscard]] static BSOpenVR* GetSingleton() | ||
{ | ||
static REL::Relocation<BSOpenVR**> singleton{ REL::Offset(0x2FEB9B0) }; | ||
return *singleton; | ||
} | ||
|
||
// members | ||
std::uint64_t unk208; // 208 | ||
void* unk210; // 210 | ||
std::uint64_t unk218; // 218 | ||
void* unk220; // 220 | ||
std::uint64_t unk228; // 228 | ||
std::uint64_t unk230; // 230 | ||
Data238 unk238[4]; // 238 | ||
std::uint64_t unk338; // 338 | ||
std::uint64_t unk340; // 340 | ||
std::uint64_t unk348; // 348 | ||
std::uint64_t unk350; // 350 | ||
std::uint64_t unk358; // 358 | ||
std::uint64_t unk360; // 360 | ||
std::uint64_t unk368; // 368 | ||
std::uint64_t unk370; // 370 | ||
std::uint64_t unk378; // 378 | ||
std::uint64_t unk380; // 380 | ||
std::uint64_t unk388[2]; // 388 | ||
std::uint64_t unk398; // 398 | ||
}; | ||
static_assert(sizeof(BSOpenVR) == 0x3A0); | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#pragma once | ||
|
||
#include "RE/B/BSTEvent.h" | ||
#include "vr/COpenVRContext.h" | ||
#include "vr/OpenVRTypes.h" | ||
|
||
#ifdef SKYRIMVR | ||
|
||
namespace RE | ||
{ | ||
struct VROverlayChange; | ||
struct VRDeviceConnectionChange; | ||
struct VRResetHMDHeight; | ||
|
||
class BSVRInterface : public BSTEventSource<VROverlayChange>, // 00 | ||
public BSTEventSource<VRDeviceConnectionChange>, // 58 | ||
public BSTEventSource<VRResetHMDHeight> // B0 | ||
{ | ||
public: | ||
[[nodiscard]] vr::IVROverlay* VROverlay() | ||
{ | ||
static REL::Relocation<vr::IVROverlay*(vr::COpenVRContext&)> get{ REL::Offset(0x8A0110) }; | ||
return get(moduleContext); | ||
} | ||
|
||
// members | ||
std::uint64_t unk108; // 108 | ||
std::uint64_t unk110; // 118 | ||
std::uint64_t unk118; // 118 | ||
std::uint64_t unk120; // 120 | ||
std::uint64_t unk128; // 128 | ||
std::uint64_t unk130; // 130 | ||
std::uint64_t unk138; // 138 | ||
std::uint64_t unk140; // 140 | ||
std::uint64_t unk148; // 148 | ||
std::uint64_t unk150; // 150 | ||
std::uint64_t unk158; // 158 | ||
std::uint64_t unk160; // 160 | ||
std::uint64_t unk168; // 168 | ||
std::uint64_t unk170; // 170 | ||
std::uint64_t unk178; // 178 | ||
std::uint64_t unk180; // 180 | ||
std::uint64_t unk188; // 188 | ||
vr::COpenVRContext moduleContext; // 190 | ||
vr::VROverlayHandle_t currentOverlay; // 1F8 | ||
std::uint64_t unk200; // 200 | ||
}; | ||
static_assert(sizeof(BSVRInterface) == 0x208); | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.