Skip to content

Commit

Permalink
ValveSoftware#1874 bug fix, addressing the incorrect return type for …
Browse files Browse the repository at this point in the history
…CVRResources.LoadSharedResource
  • Loading branch information
fraser committed Sep 17, 2024
1 parent e6b9f89 commit b2682b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions headers/openvr_api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,7 @@ public struct IVRScreenshots
public struct IVRResources
{
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate uint _LoadSharedResource(IntPtr pchResourceName, string pchBuffer, uint unBufferLen);
internal delegate uint _LoadSharedResource(IntPtr pchResourceName, System.Text.StringBuilder pchBuffer, uint unBufferLen);
[MarshalAs(UnmanagedType.FunctionPtr)]
internal _LoadSharedResource LoadSharedResource;

Expand Down Expand Up @@ -4075,7 +4075,7 @@ internal CVRResources(IntPtr pInterface)
{
FnTable = (IVRResources)Marshal.PtrToStructure(pInterface, typeof(IVRResources));
}
public uint LoadSharedResource(string pchResourceName,string pchBuffer,uint unBufferLen)
public uint LoadSharedResource(string pchResourceName,System.Text.StringBuilder pchBuffer,uint unBufferLen)
{
IntPtr pchResourceNameUtf8 = Utils.ToUtf8(pchResourceName);
uint result = FnTable.LoadSharedResource(pchResourceNameUtf8,pchBuffer,unBufferLen);
Expand Down

0 comments on commit b2682b2

Please sign in to comment.