mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 06:38:01 +03:00
Merge pull request #45 from richdog/master
Updated Workshop.onDownloadResult to compare downloaded item's application to current application
This commit is contained in:
commit
ed632baf38
@ -73,7 +73,7 @@ namespace Facepunch.Steamworks
|
|||||||
|
|
||||||
private void onDownloadResult( SteamNative.DownloadItemResult_t obj, bool failed )
|
private void onDownloadResult( SteamNative.DownloadItemResult_t obj, bool failed )
|
||||||
{
|
{
|
||||||
if ( OnFileDownloaded != null )
|
if ( OnFileDownloaded != null && obj.AppID == Client.Instance.AppId )
|
||||||
OnFileDownloaded( obj.PublishedFileId, (Callbacks.Result) obj.Result );
|
OnFileDownloaded( obj.PublishedFileId, (Callbacks.Result) obj.Result );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user