diff --git a/headers/openvr_api.cs b/headers/openvr_api.cs index 02b7c338..6d66cb8b 100644 --- a/headers/openvr_api.cs +++ b/headers/openvr_api.cs @@ -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; @@ -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);