Skip to content

Commit

Permalink
[ steamvr - sdk ]
Browse files Browse the repository at this point in the history
* Editing codegen scripts to point to the public openvr_api.json.

Note: Keep these changes when integrating from main/rel, but do not integrate them to main/rel.

[git-p4: depot-paths = "//vr/steamvr/sdk_release/": change = 7446031]
  • Loading branch information
aaronleiby committed Aug 18, 2022
1 parent 7589062 commit 0aad319
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
16 changes: 3 additions & 13 deletions codegen/openvr_capi.cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,8 @@
#include <stdlib.h>
#include <assert.h>
#include "openvr.h"
#include "ivrsystem.h"
#include "ivrchaperone.h"
#include "ivrchaperonesetup.h"
#include "ivrcompositor.h"
#include "ivroverlay.h"
#include "ivrrendermodels.h"
#include "ivrnotifications.h"
#include "ivrblockqueue.h"
#include "../vrclient/interface_adapters_client.h"
#include "_dynamic_openvr_api_flat.h"
#include "../headers/openvr.h"
#include "openvr_capi.h"
class FnTableRegistration
{
Expand All @@ -77,7 +67,7 @@ class FnTableRegistration

import json
import sys
with open('_dynamic_openvr_api.json') as data_file:
with open('../headers/openvr_api.json') as data_file:
data = json.load(data_file)

import api_shared
Expand Down
2 changes: 1 addition & 1 deletion codegen/openvr_capi.h.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@



data = api_shared.loadfile('_dynamic_openvr_api.json', 'vr')
data = api_shared.loadfile('../headers/openvr_api.json', 'vr')
converttype = api_shared.converttype
striparraysuffix = api_shared.striparraysuffix
structlist = api_shared.structlist
Expand Down
2 changes: 1 addition & 1 deletion codegen/openvr_interop.cs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@



data = api_shared.loadfile('_dynamic_openvr_api.json', 'vr')
data = api_shared.loadfile('../headers/openvr_api.json', 'vr')
converttype = api_shared.converttype
structlist = api_shared.structlist
typedeflist = api_shared.typedeflist
Expand Down

0 comments on commit 0aad319

Please sign in to comment.