mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 23:25:50 +03:00
vrclient: Log IVRClientCore initialization errors.
This commit is contained in:
parent
7ea55b4679
commit
b44c226242
@ -197,18 +197,32 @@ EVRInitError ivrclientcore_002_init(EVRInitError (*cpp_func)(void *, EVRApplicat
|
||||
void *linux_side, EVRApplicationType application_type,
|
||||
unsigned int version, struct client_core_data *user_data)
|
||||
{
|
||||
EVRInitError error;
|
||||
|
||||
TRACE("%p, %#x\n", linux_side, application_type);
|
||||
|
||||
InitializeCriticalSection(&user_data->critical_section);
|
||||
return cpp_func(linux_side, application_type);
|
||||
|
||||
error = cpp_func(linux_side, application_type);
|
||||
if (error)
|
||||
ERR("error %#x\n", error);
|
||||
return error;
|
||||
}
|
||||
|
||||
EVRInitError ivrclientcore_init(EVRInitError (*cpp_func)(void *, EVRApplicationType, const char *),
|
||||
void *linux_side, EVRApplicationType application_type, const char *startup_info,
|
||||
unsigned int version, struct client_core_data *user_data)
|
||||
{
|
||||
EVRInitError error;
|
||||
|
||||
TRACE("%p, %#x, %p\n", linux_side, application_type, startup_info);
|
||||
|
||||
InitializeCriticalSection(&user_data->critical_section);
|
||||
return cpp_func(linux_side, application_type, startup_info);
|
||||
|
||||
error = cpp_func(linux_side, application_type, startup_info);
|
||||
if (error)
|
||||
ERR("error %#x\n", error);
|
||||
return error;
|
||||
}
|
||||
|
||||
void *ivrclientcore_get_generic_interface(void *(*cpp_func)(void *, const char *, EVRInitError *),
|
||||
|
Loading…
Reference in New Issue
Block a user