mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-02-03 09:10:41 +03:00
Cleanup
This commit is contained in:
parent
6ef86c3cb8
commit
6bd0af6c5a
@ -28,14 +28,14 @@ namespace Facepunch.Steamworks.Interop
|
|||||||
{
|
{
|
||||||
api = new SteamNative.SteamApi( (IntPtr) 1 );
|
api = new SteamNative.SteamApi( (IntPtr) 1 );
|
||||||
|
|
||||||
|
if ( !api.SteamAPI_Init() )
|
||||||
|
return false;
|
||||||
|
|
||||||
var user = api.SteamAPI_GetHSteamUser();
|
var user = api.SteamAPI_GetHSteamUser();
|
||||||
var pipe = api.SteamAPI_GetHSteamPipe();
|
var pipe = api.SteamAPI_GetHSteamPipe();
|
||||||
if ( pipe == 0 )
|
if ( pipe == 0 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ( !api.SteamAPI_Init() )
|
|
||||||
return false;
|
|
||||||
|
|
||||||
FillInterfaces( user, pipe );
|
FillInterfaces( user, pipe );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -11,7 +11,6 @@ namespace Generator
|
|||||||
public string Name;
|
public string Name;
|
||||||
public string NativeType;
|
public string NativeType;
|
||||||
public string ManagedType;
|
public string ManagedType;
|
||||||
public bool IsRef;
|
|
||||||
public TypeDef TypeDef;
|
public TypeDef TypeDef;
|
||||||
|
|
||||||
public Argument( string Name, string ManagedType, Dictionary<string, TypeDef> typeDefs )
|
public Argument( string Name, string ManagedType, Dictionary<string, TypeDef> typeDefs )
|
||||||
@ -148,8 +147,7 @@ namespace Generator
|
|||||||
if ( ShouldBePassedAsOut )
|
if ( ShouldBePassedAsOut )
|
||||||
return $"out {ManagedType.Trim( '*', ' ' )} {Name} /*{NativeType}*/";
|
return $"out {ManagedType.Trim( '*', ' ' )} {Name} /*{NativeType}*/";
|
||||||
|
|
||||||
var refv = IsRef ? "ref " : "";
|
return $"{ManagedType} {Name} /*{NativeType}*/";
|
||||||
return $"{refv}{ManagedType} {Name} /*{NativeType}*/";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
internal string InteropVariable( bool AsRawValues )
|
internal string InteropVariable( bool AsRawValues )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user