mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-14 15:48:11 +03:00
steam_helper: Store HMD presence status in registry.
CW-Bug-Id: 18901
This commit is contained in:
parent
6cc6afaa3b
commit
0e9c2536c0
@ -559,6 +559,7 @@ static DWORD WINAPI initialize_vr_data(void *arg)
|
|||||||
unsigned int app_id;
|
unsigned int app_id;
|
||||||
unsigned int length;
|
unsigned int length;
|
||||||
void *lib_vrclient;
|
void *lib_vrclient;
|
||||||
|
DWORD hmd_present;
|
||||||
int return_code;
|
int return_code;
|
||||||
LSTATUS status;
|
LSTATUS status;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
@ -604,6 +605,11 @@ static DWORD WINAPI initialize_vr_data(void *arg)
|
|||||||
}
|
}
|
||||||
vr_initialized = TRUE;
|
vr_initialized = TRUE;
|
||||||
|
|
||||||
|
hmd_present = !!client_core->BIsHmdPresent();
|
||||||
|
WINE_TRACE("hmd_present %#x.\n", hmd_present);
|
||||||
|
if ((status = RegSetValueExA(vr_key, "is_hmd_present", 0, REG_DWORD, (BYTE *)&hmd_present, sizeof(hmd_present))))
|
||||||
|
WINE_ERR("Could not set is_hmd_present value, status %#x.\n", status);
|
||||||
|
|
||||||
compositor = reinterpret_cast<vr::IVRCompositor*>(client_core->GetGenericInterface(vr::IVRCompositor_Version, &error));
|
compositor = reinterpret_cast<vr::IVRCompositor*>(client_core->GetGenericInterface(vr::IVRCompositor_Version, &error));
|
||||||
if (!compositor)
|
if (!compositor)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user