(965c31410a) Unstable v0.10.4.0
This commit is contained in:
@@ -98,11 +98,14 @@ namespace Steamworks
|
||||
if ( _properties!= null && _properties.TryGetValue( name, out string val ) )
|
||||
return val;
|
||||
|
||||
uint _ = (uint)Helpers.MaxStringSize;
|
||||
uint _ = (uint)Helpers.MemoryBufferSize;
|
||||
|
||||
if ( !SteamInventory.Internal.GetItemDefinitionProperty( Id, name, out var vl, ref _ ) )
|
||||
return null;
|
||||
|
||||
|
||||
if (name == null) //return keys string
|
||||
return vl;
|
||||
|
||||
if ( _properties == null )
|
||||
_properties = new Dictionary<string, string>();
|
||||
|
||||
@@ -132,7 +135,7 @@ namespace Steamworks
|
||||
string val = GetProperty( name );
|
||||
|
||||
if ( string.IsNullOrEmpty( val ) )
|
||||
return default( T );
|
||||
return default;
|
||||
|
||||
try
|
||||
{
|
||||
@@ -140,7 +143,7 @@ namespace Steamworks
|
||||
}
|
||||
catch ( System.Exception )
|
||||
{
|
||||
return default( T );
|
||||
return default;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -235,4 +238,4 @@ namespace Steamworks
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user