mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-24 04:28:00 +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 );
|
||||
|
||||
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;
|
||||
|
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user