summaryrefslogtreecommitdiffstats
path: root/make/config/oculusvr/oculusvr-common.cfg
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-06-25 12:58:13 +0200
committerSven Gothel <[email protected]>2014-06-25 12:58:13 +0200
commit08649aec02bae161423871c9bb3ec9a011e91088 (patch)
tree1b0e6f1bb13644bfd5b885ef1231a8d992ea9594 /make/config/oculusvr/oculusvr-common.cfg
parent008b3512be183cefc82e051b36c7a74d53c4906d (diff)
Bug 1021: OVR GlueGen Mapping: Handle non-existent native oculusvr lib gracefully
- query isAvailable() in ovr_Initialize(), ovrHmd_Create(..) and ovrHmd_CreateDebug(..) and return appropriate values.
Diffstat (limited to 'make/config/oculusvr/oculusvr-common.cfg')
-rw-r--r--make/config/oculusvr/oculusvr-common.cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/make/config/oculusvr/oculusvr-common.cfg b/make/config/oculusvr/oculusvr-common.cfg
index eb01cf067..24f535d45 100644
--- a/make/config/oculusvr/oculusvr-common.cfg
+++ b/make/config/oculusvr/oculusvr-common.cfg
@@ -42,6 +42,10 @@ ReturnedArrayLength ovrDistortionMesh.pIndexData getIndexCount()
ReturnValueCapacity ovrHmd_Create sizeof(ovrHmd)
ReturnValueCapacity ovrHmd_CreateDebug sizeof(ovrHmd)
+JavaPrologue ovr_Initialize if( !isAvailable() ) { return false; }
+JavaPrologue ovrHmd_Create if( !isAvailable() ) { return null; }
+JavaPrologue ovrHmd_CreateDebug if( !isAvailable() ) { return null; }
+
ArgumentIsString ovrHmd_GetFloat 1
ArgumentIsString ovrHmd_SetFloat 1
ArgumentIsString ovrHmd_GetFloatArray 1