2018-01-18 22:29:49 +03:00
|
|
|
#include "vrclient_private.h"
|
|
|
|
#include "vrclient_defs.h"
|
|
|
|
#include "openvr_v1.0.2/openvr.h"
|
|
|
|
using namespace vr;
|
|
|
|
extern "C" {
|
|
|
|
#include "struct_converters.h"
|
|
|
|
}
|
|
|
|
#include "cppIVRSettings_IVRSettings_001.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
const char * cppIVRSettings_IVRSettings_001_GetSettingsErrorNameFromEnum(void *linux_side, EVRSettingsError eError)
|
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
const char *_ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVRSettings*)linux_side)->GetSettingsErrorNameFromEnum((vr::EVRSettingsError)eError);
|
|
|
|
return _ret;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
bool cppIVRSettings_IVRSettings_001_Sync(void *linux_side, bool bForce, EVRSettingsError *peError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-23 22:44:20 +03:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((IVRSettings*)linux_side)->Sync((bool)bForce, (vr::EVRSettingsError *)peError);
|
|
|
|
return _ret;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
bool cppIVRSettings_IVRSettings_001_GetBool(void *linux_side, const char *pchSection, const char *pchSettingsKey, bool bDefaultValue, EVRSettingsError *peError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-23 22:44:20 +03:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((IVRSettings*)linux_side)->GetBool((const char *)pchSection, (const char *)pchSettingsKey, (bool)bDefaultValue, (vr::EVRSettingsError *)peError);
|
|
|
|
return _ret;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_SetBool(void *linux_side, const char *pchSection, const char *pchSettingsKey, bool bValue, EVRSettingsError *peError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
|
|
|
((IVRSettings*)linux_side)->SetBool((const char *)pchSection, (const char *)pchSettingsKey, (bool)bValue, (vr::EVRSettingsError *)peError);
|
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
int32_t cppIVRSettings_IVRSettings_001_GetInt32(void *linux_side, const char *pchSection, const char *pchSettingsKey, int32_t nDefaultValue, EVRSettingsError *peError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-23 22:44:20 +03:00
|
|
|
int32_t _ret;
|
|
|
|
_ret = ((IVRSettings*)linux_side)->GetInt32((const char *)pchSection, (const char *)pchSettingsKey, (int32_t)nDefaultValue, (vr::EVRSettingsError *)peError);
|
|
|
|
return _ret;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_SetInt32(void *linux_side, const char *pchSection, const char *pchSettingsKey, int32_t nValue, EVRSettingsError *peError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
|
|
|
((IVRSettings*)linux_side)->SetInt32((const char *)pchSection, (const char *)pchSettingsKey, (int32_t)nValue, (vr::EVRSettingsError *)peError);
|
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
float cppIVRSettings_IVRSettings_001_GetFloat(void *linux_side, const char *pchSection, const char *pchSettingsKey, float flDefaultValue, EVRSettingsError *peError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-23 22:44:20 +03:00
|
|
|
float _ret;
|
|
|
|
_ret = ((IVRSettings*)linux_side)->GetFloat((const char *)pchSection, (const char *)pchSettingsKey, (float)flDefaultValue, (vr::EVRSettingsError *)peError);
|
|
|
|
return _ret;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_SetFloat(void *linux_side, const char *pchSection, const char *pchSettingsKey, float flValue, EVRSettingsError *peError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
|
|
|
((IVRSettings*)linux_side)->SetFloat((const char *)pchSection, (const char *)pchSettingsKey, (float)flValue, (vr::EVRSettingsError *)peError);
|
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_GetString(void *linux_side, const char *pchSection, const char *pchSettingsKey, char *pchValue, uint32_t unValueLen, const char *pchDefaultValue, EVRSettingsError *peError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
|
|
|
((IVRSettings*)linux_side)->GetString((const char *)pchSection, (const char *)pchSettingsKey, (char *)pchValue, (uint32_t)unValueLen, (const char *)pchDefaultValue, (vr::EVRSettingsError *)peError);
|
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_SetString(void *linux_side, const char *pchSection, const char *pchSettingsKey, const char *pchValue, EVRSettingsError *peError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
|
|
|
((IVRSettings*)linux_side)->SetString((const char *)pchSection, (const char *)pchSettingsKey, (const char *)pchValue, (vr::EVRSettingsError *)peError);
|
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_RemoveSection(void *linux_side, const char *pchSection, EVRSettingsError *peError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
|
|
|
((IVRSettings*)linux_side)->RemoveSection((const char *)pchSection, (vr::EVRSettingsError *)peError);
|
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
void cppIVRSettings_IVRSettings_001_RemoveKeyInSection(void *linux_side, const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError)
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
|
|
|
((IVRSettings*)linux_side)->RemoveKeyInSection((const char *)pchSection, (const char *)pchSettingsKey, (vr::EVRSettingsError *)peError);
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|