Added SteamAPI_RestartAppIfNecessary to missing

This commit is contained in:
Garry Newman 2017-07-06 10:05:23 +01:00
parent 892edf371e
commit 5890fea9e6
8 changed files with 47 additions and 1 deletions

View File

@ -686,6 +686,7 @@ internal interface Interface : IDisposable
HSteamUser /*(HSteamUser)*/ SteamApi_SteamGameServer_GetHSteamUser(); HSteamUser /*(HSteamUser)*/ SteamApi_SteamGameServer_GetHSteamUser();
HSteamPipe /*(HSteamPipe)*/ SteamApi_SteamGameServer_GetHSteamPipe(); HSteamPipe /*(HSteamPipe)*/ SteamApi_SteamGameServer_GetHSteamPipe();
IntPtr /*void **/ SteamApi_SteamInternal_CreateInterface( string /*const char **/ version ); IntPtr /*void **/ SteamApi_SteamInternal_CreateInterface( string /*const char **/ version );
bool /*bool*/ SteamApi_SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID );
} }
} }
} }

View File

@ -4103,6 +4103,10 @@ public virtual IntPtr ISteamController_GetGlyphForActionOrigin( ControllerAction
{ {
return Native.SteamInternal_CreateInterface(version); return Native.SteamInternal_CreateInterface(version);
} }
public virtual bool /*bool*/ SteamApi_SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID )
{
return Native.SteamAPI_RestartAppIfNecessary(unOwnAppID);
}
internal static unsafe class Native internal static unsafe class Native
{ {
@ -4876,6 +4880,7 @@ internal static unsafe class Native
[DllImportAttribute( "libsteam_api.so" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamGameServer_GetHSteamUser(); [DllImportAttribute( "libsteam_api.so" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamGameServer_GetHSteamUser();
[DllImportAttribute( "libsteam_api.so" )] internal static extern HSteamPipe /*(HSteamPipe)*/ SteamGameServer_GetHSteamPipe(); [DllImportAttribute( "libsteam_api.so" )] internal static extern HSteamPipe /*(HSteamPipe)*/ SteamGameServer_GetHSteamPipe();
[DllImportAttribute( "libsteam_api.so" )] internal static extern IntPtr /*void **/ SteamInternal_CreateInterface( string /*const char **/ version ); [DllImportAttribute( "libsteam_api.so" )] internal static extern IntPtr /*void **/ SteamInternal_CreateInterface( string /*const char **/ version );
[DllImportAttribute( "libsteam_api.so" )] internal static extern bool /*bool*/ SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID );
} }
} }

View File

@ -4103,6 +4103,10 @@ public virtual IntPtr ISteamController_GetGlyphForActionOrigin( ControllerAction
{ {
return Native.SteamInternal_CreateInterface(version); return Native.SteamInternal_CreateInterface(version);
} }
public virtual bool /*bool*/ SteamApi_SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID )
{
return Native.SteamAPI_RestartAppIfNecessary(unOwnAppID);
}
internal static unsafe class Native internal static unsafe class Native
{ {
@ -4876,6 +4880,7 @@ internal static unsafe class Native
[DllImportAttribute( "libsteam_api64.so" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamGameServer_GetHSteamUser(); [DllImportAttribute( "libsteam_api64.so" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamGameServer_GetHSteamUser();
[DllImportAttribute( "libsteam_api64.so" )] internal static extern HSteamPipe /*(HSteamPipe)*/ SteamGameServer_GetHSteamPipe(); [DllImportAttribute( "libsteam_api64.so" )] internal static extern HSteamPipe /*(HSteamPipe)*/ SteamGameServer_GetHSteamPipe();
[DllImportAttribute( "libsteam_api64.so" )] internal static extern IntPtr /*void **/ SteamInternal_CreateInterface( string /*const char **/ version ); [DllImportAttribute( "libsteam_api64.so" )] internal static extern IntPtr /*void **/ SteamInternal_CreateInterface( string /*const char **/ version );
[DllImportAttribute( "libsteam_api64.so" )] internal static extern bool /*bool*/ SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID );
} }
} }

View File

@ -4103,6 +4103,10 @@ public virtual IntPtr ISteamController_GetGlyphForActionOrigin( ControllerAction
{ {
return Native.SteamInternal_CreateInterface(version); return Native.SteamInternal_CreateInterface(version);
} }
public virtual bool /*bool*/ SteamApi_SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID )
{
return Native.SteamAPI_RestartAppIfNecessary(unOwnAppID);
}
internal static unsafe class Native internal static unsafe class Native
{ {
@ -4876,6 +4880,7 @@ internal static unsafe class Native
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamGameServer_GetHSteamUser(); [DllImportAttribute( "libsteam_api.dylib" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamGameServer_GetHSteamUser();
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HSteamPipe /*(HSteamPipe)*/ SteamGameServer_GetHSteamPipe(); [DllImportAttribute( "libsteam_api.dylib" )] internal static extern HSteamPipe /*(HSteamPipe)*/ SteamGameServer_GetHSteamPipe();
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*void **/ SteamInternal_CreateInterface( string /*const char **/ version ); [DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*void **/ SteamInternal_CreateInterface( string /*const char **/ version );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID );
} }
} }

View File

@ -4069,6 +4069,10 @@ public virtual IntPtr ISteamController_GetGlyphForActionOrigin( ControllerAction
{ {
return Native.SteamInternal_CreateInterface(version); return Native.SteamInternal_CreateInterface(version);
} }
public virtual bool /*bool*/ SteamApi_SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID )
{
return Native.SteamAPI_RestartAppIfNecessary(unOwnAppID);
}
internal static unsafe class Native internal static unsafe class Native
{ {
@ -4842,6 +4846,7 @@ internal static unsafe class Native
[DllImportAttribute( "steam_api.dll" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamGameServer_GetHSteamUser(); [DllImportAttribute( "steam_api.dll" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamGameServer_GetHSteamUser();
[DllImportAttribute( "steam_api.dll" )] internal static extern HSteamPipe /*(HSteamPipe)*/ SteamGameServer_GetHSteamPipe(); [DllImportAttribute( "steam_api.dll" )] internal static extern HSteamPipe /*(HSteamPipe)*/ SteamGameServer_GetHSteamPipe();
[DllImportAttribute( "steam_api.dll" )] internal static extern IntPtr /*void **/ SteamInternal_CreateInterface( string /*const char **/ version ); [DllImportAttribute( "steam_api.dll" )] internal static extern IntPtr /*void **/ SteamInternal_CreateInterface( string /*const char **/ version );
[DllImportAttribute( "steam_api.dll" )] internal static extern bool /*bool*/ SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID );
} }
} }

View File

@ -4069,6 +4069,10 @@ public virtual IntPtr ISteamController_GetGlyphForActionOrigin( ControllerAction
{ {
return Native.SteamInternal_CreateInterface(version); return Native.SteamInternal_CreateInterface(version);
} }
public virtual bool /*bool*/ SteamApi_SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID )
{
return Native.SteamAPI_RestartAppIfNecessary(unOwnAppID);
}
internal static unsafe class Native internal static unsafe class Native
{ {
@ -4842,6 +4846,7 @@ internal static unsafe class Native
[DllImportAttribute( "steam_api64.dll" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamGameServer_GetHSteamUser(); [DllImportAttribute( "steam_api64.dll" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamGameServer_GetHSteamUser();
[DllImportAttribute( "steam_api64.dll" )] internal static extern HSteamPipe /*(HSteamPipe)*/ SteamGameServer_GetHSteamPipe(); [DllImportAttribute( "steam_api64.dll" )] internal static extern HSteamPipe /*(HSteamPipe)*/ SteamGameServer_GetHSteamPipe();
[DllImportAttribute( "steam_api64.dll" )] internal static extern IntPtr /*void **/ SteamInternal_CreateInterface( string /*const char **/ version ); [DllImportAttribute( "steam_api64.dll" )] internal static extern IntPtr /*void **/ SteamInternal_CreateInterface( string /*const char **/ version );
[DllImportAttribute( "steam_api64.dll" )] internal static extern bool /*bool*/ SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID );
} }
} }

View File

@ -73,6 +73,12 @@ public void SteamAPI_RegisterCallResult( IntPtr pCallback /*void **/, SteamAPICa
platform.SteamApi_SteamAPI_RegisterCallResult( (IntPtr) pCallback, callback.Value ); platform.SteamApi_SteamAPI_RegisterCallResult( (IntPtr) pCallback, callback.Value );
} }
// bool
public bool SteamAPI_RestartAppIfNecessary( uint unOwnAppID /*uint32*/ )
{
return platform.SteamApi_SteamAPI_RestartAppIfNecessary( unOwnAppID );
}
// void // void
public void SteamAPI_RunCallbacks() public void SteamAPI_RunCallbacks()
{ {

View File

@ -210,6 +210,20 @@
paramtype: "const char *" paramtype: "const char *"
} }
], ],
},
{
NeedsSelfPointer: false,
classname: "SteamApi",
methodname: "SteamAPI_RestartAppIfNecessary",
returntype: "bool",
params:
[
{
paramname: "unOwnAppID",
paramtype: "uint32"
} }
],
},
] ]
} }