diff --git a/Facepunch.Steamworks/Client/Friends.cs b/Facepunch.Steamworks/Client/Friends.cs
index 060fc8c..00bea27 100644
--- a/Facepunch.Steamworks/Client/Friends.cs
+++ b/Facepunch.Steamworks/Client/Friends.cs
@@ -237,7 +237,7 @@ namespace Facepunch.Steamworks
break;
}
- if ( imageid == 0 || imageid == 2 )
+ if ( imageid >= 0 && imageid <= 10 )
return null;
var img = new Image()
@@ -333,6 +333,7 @@ namespace Facepunch.Steamworks
}
}
+
private void OnPersonaStateChange( PersonaStateChange_t data )
{
if ( (data.ChangeFlags & 0x0040) != 0x0040 ) return; // wait for k_EPersonaChangeAvatar
diff --git a/Facepunch.Steamworks/Client/Image.cs b/Facepunch.Steamworks/Client/Image.cs
index 0dc56ea..03d3ed5 100644
--- a/Facepunch.Steamworks/Client/Image.cs
+++ b/Facepunch.Steamworks/Client/Image.cs
@@ -29,7 +29,7 @@ namespace Facepunch.Steamworks
if ( utils.GetImageSize( Id, out width, out height ) == false )
{
IsError = true;
- return true;
+ return false;
}
var buffer = new byte[ width * height * 4 ];
@@ -39,7 +39,7 @@ namespace Facepunch.Steamworks
if ( utils.GetImageRGBA( Id, (IntPtr) ptr, buffer.Length ) == false )
{
IsError = true;
- return true;
+ return false;
}
}
diff --git a/Facepunch.Steamworks/Config.cs b/Facepunch.Steamworks/Config.cs
index 3d79a4e..f2c324e 100644
--- a/Facepunch.Steamworks/Config.cs
+++ b/Facepunch.Steamworks/Config.cs
@@ -32,10 +32,13 @@ namespace Facepunch.Steamworks
}
IsUnity = true;
+ UseThisCall = SteamNative.Platform.Os == OperatingSystem.Windows;
Console.WriteLine( "Facepunch.Steamworks Unity: " + platform );
Console.WriteLine( "Facepunch.Steamworks Os: " + SteamNative.Platform.Os );
Console.WriteLine( "Facepunch.Steamworks Arch: " + SteamNative.Platform.Arch );
+
+
}
///
@@ -47,7 +50,7 @@ namespace Facepunch.Steamworks
/// for releasing his shit open source under the MIT license so we can all learn and iterate.
///
///
- internal static bool UseThisCall { get { return SteamNative.Platform.Os == OperatingSystem.Windows && !IsUnity; } }
+ public static bool UseThisCall { get; set; } = SteamNative.Platform.Os == OperatingSystem.Windows;
///