v1.0.13.1 (first post-1.0 patch)
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Steamworks
|
||||
internal struct CallResult<T> : INotifyCompletion where T : struct, ICallbackData
|
||||
{
|
||||
SteamAPICall_t call;
|
||||
ISteamUtils utils;
|
||||
ISteamUtils? utils;
|
||||
bool server;
|
||||
|
||||
public CallResult( SteamAPICall_t call, bool server )
|
||||
@@ -43,6 +43,8 @@ namespace Steamworks
|
||||
/// </summary>
|
||||
public T? GetResult()
|
||||
{
|
||||
if (utils is null) { return null; }
|
||||
|
||||
bool failed = false;
|
||||
if ( !utils.IsAPICallCompleted( call, ref failed ) || failed )
|
||||
return null;
|
||||
@@ -76,6 +78,8 @@ namespace Steamworks
|
||||
{
|
||||
get
|
||||
{
|
||||
if (utils is null) { return true; }
|
||||
|
||||
bool failed = false;
|
||||
if ( utils.IsAPICallCompleted( call, ref failed ) || failed )
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user