This commit is contained in:
Garry Newman 2019-04-14 21:48:26 +01:00
parent 2d2be118d3
commit db1cfde383
3 changed files with 9 additions and 8 deletions

View File

@ -13,15 +13,15 @@ namespace Steamworks
/// </summary> /// </summary>
public static class Apps public static class Apps
{ {
static Internal.ISteamApps _steamapps; static Internal.ISteamApps _internal;
internal static Internal.ISteamApps steamapps internal static Internal.ISteamApps steamapps
{ {
get get
{ {
if ( _steamapps == null ) if ( _internal == null )
_steamapps = new Internal.ISteamApps(); _internal = new Internal.ISteamApps();
return _steamapps; return _internal;
} }
} }

View File

@ -33,6 +33,7 @@ public static void Init( uint appid )
Apps.InstallEvents(); Apps.InstallEvents();
Utils.InstallEvents(); Utils.InstallEvents();
Parental.InstallEvents();
} }
internal static void RegisterCallback( IntPtr intPtr, int callbackId ) internal static void RegisterCallback( IntPtr intPtr, int callbackId )

View File

@ -12,15 +12,15 @@ namespace Steamworks
/// </summary> /// </summary>
public static class Utils public static class Utils
{ {
static Internal.ISteamUtils _steamutils; static Internal.ISteamUtils _internal;
internal static Internal.ISteamUtils steamutils internal static Internal.ISteamUtils steamutils
{ {
get get
{ {
if ( _steamutils == null ) if ( _internal == null )
_steamutils = new Internal.ISteamUtils(); _internal = new Internal.ISteamUtils();
return _steamutils; return _internal;
} }
} }