Proton/vrclient_x64/vrclient_x64/cppIVRSettings_IVRSettings_001.cpp

85 lines
3.9 KiB
C++
Raw Normal View History

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)
{
const char *_ret;
_ret = ((IVRSettings*)linux_side)->GetSettingsErrorNameFromEnum((vr::EVRSettingsError)eError);
return _ret;
2018-01-18 22:29:49 +03:00
}
bool cppIVRSettings_IVRSettings_001_Sync(void *linux_side, bool bForce, EVRSettingsError *peError)
2018-01-18 22:29:49 +03:00
{
bool _ret;
_ret = ((IVRSettings*)linux_side)->Sync((bool)bForce, (vr::EVRSettingsError *)peError);
return _ret;
2018-01-18 22:29:49 +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
{
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
}
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);
}
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
{
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
}
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);
}
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
{
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
}
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);
}
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);
}
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);
}
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);
}
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