mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-03-12 13:30:31 +03:00
Fill doesn't exist
This commit is contained in:
parent
b763a096b7
commit
465b42e9a1
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user