Fill doesn't exist

This commit is contained in:
Garry Newman 2020-02-19 09:33:33 +00:00
parent b763a096b7
commit 465b42e9a1
3 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ namespace Steamworks
internal gameserveritem_t GetServerDetails( HServerListRequest hRequest, int iServer )
{
var returnValue = _GetServerDetails( Self, hRequest, iServer );
return gameserveritem_t.Fill( returnValue );
return (gameserveritem_t) Marshal.PtrToStructure( returnValue, typeof( gameserveritem_t ) );
}
#region FunctionMeta

View File

@ -25,7 +25,7 @@ namespace Steamworks
internal NetMsg AllocateMessage( int cbAllocateBuffer )
{
var returnValue = _AllocateMessage( Self, cbAllocateBuffer );
return NetMsg.Fill( returnValue );
return (NetMsg) Marshal.PtrToStructure( returnValue, typeof( NetMsg ) );
}
#region FunctionMeta

View File

@ -143,7 +143,7 @@ internal class StructType : BaseType
{
if ( NativeType.EndsWith( "*" ) )
{
return $"return {TypeName}.Fill( {varname} );";
return $"return ({TypeName}) Marshal.PtrToStructure( {varname}, typeof( {TypeName} ) );";
}
return base.Return( varname );