diff --git a/Facepunch.Steamworks/Utility/SteamInterface.cs b/Facepunch.Steamworks/Utility/SteamInterface.cs index 4ad4003..550aa24 100644 --- a/Facepunch.Steamworks/Utility/SteamInterface.cs +++ b/Facepunch.Steamworks/Utility/SteamInterface.cs @@ -47,12 +47,18 @@ namespace Steamworks // CreateInterface doesn't seem to have caused any fires, so we'll just use that. // - // var user = SteamAPI.GetHSteamUser(); + // // var pipe = SteamAPI.GetHSteamPipe(); - // Self = SteamInternal.FindOrCreateUserInterface( user, InterfaceName ); + // Self = SteamInternal.CreateInterface( InterfaceName ); + if ( Self == IntPtr.Zero ) + { + var user = SteamAPI.GetHSteamUser(); + Self = SteamInternal.FindOrCreateUserInterface( user, InterfaceName ); + } + if ( Self == IntPtr.Zero ) throw new System.Exception( $"Couldn't find interface {InterfaceName}" );