Skip to content

Commit

Permalink
fix call to openvr, copy dll from submodule into build dir, copy dll …
Browse files Browse the repository at this point in the history
…into bin dir
  • Loading branch information
Ybalrid committed May 11, 2021
1 parent 59fc76f commit 99a75a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ public MainWindow()
{
InitializeComponent();
UpdateActiveRuntimeDisplay();
UpdateAvailalbeRuntimeList();
UpdateAvailableRuntimeList();
}

private void UpdateAvailalbeRuntimeList()
private void UpdateAvailableRuntimeList()
{
var availableRuntimeList = runtimeManager.AvailableRuntimeNames;
RuntimeList.Items.Clear();
foreach (string name in availableRuntimeList)
{
RuntimeList.Items.Add(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy $(ProjectDir)openvr_api.dll $(TargetDir)</PostBuildEvent>
<PostBuildEvent>copy $(ProjectDir)openvr_api.dll $(TargetDir)openvr_api.dll</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>copy $(ProjectDir)..\..\third-party\openvr\bin\win64\openvr_api.dll ${ProjectDir)
copy $(ProjectDir)..\..\third-party\openvr\headers\openvr_api.cs ${ProjectDir)
<PreBuildEvent>copy $(ProjectDir)..\..\third-party\openvr\bin\win64\openvr_api.dll $(ProjectDir)\openvr_api.dll
copy $(ProjectDir)..\..\third-party\openvr\headers\openvr_api.cs $(ProjectDir)\openvr_api.cs
</PreBuildEvent>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private static string GetKhronosOpenXRVersionRegistryKeyPath(int OpenXRVersion =
private bool ProbeForSteamVRInstallationPath()
{
StringBuilder pathBuilder = new StringBuilder(256);
uint bufferSize = (uint)pathBuilder.Length;
uint bufferSize = 256;
try
{
if (OpenVRInterop.GetRuntimePath(pathBuilder, bufferSize, ref bufferSize))
Expand Down

0 comments on commit 99a75a6

Please sign in to comment.