This commit is contained in:
Garry Newman 2016-10-26 17:02:57 +01:00
parent 6ef86c3cb8
commit 6bd0af6c5a
2 changed files with 4 additions and 6 deletions

View File

@ -28,14 +28,14 @@ namespace Facepunch.Steamworks.Interop
{
api = new SteamNative.SteamApi( (IntPtr) 1 );
if ( !api.SteamAPI_Init() )
return false;
var user = api.SteamAPI_GetHSteamUser();
var pipe = api.SteamAPI_GetHSteamPipe();
if ( pipe == 0 )
return false;
if ( !api.SteamAPI_Init() )
return false;
FillInterfaces( user, pipe );
return true;

View File

@ -11,7 +11,6 @@ namespace Generator
public string Name;
public string NativeType;
public string ManagedType;
public bool IsRef;
public TypeDef TypeDef;
public Argument( string Name, string ManagedType, Dictionary<string, TypeDef> typeDefs )
@ -148,8 +147,7 @@ namespace Generator
if ( ShouldBePassedAsOut )
return $"out {ManagedType.Trim( '*', ' ' )} {Name} /*{NativeType}*/";
var refv = IsRef ? "ref " : "";
return $"{refv}{ManagedType} {Name} /*{NativeType}*/";
return $"{ManagedType} {Name} /*{NativeType}*/";
}
internal string InteropVariable( bool AsRawValues )