Steamworks.NET icon indicating copy to clipboard operation
Steamworks.NET copied to clipboard

SteamUGC.GetSubscribedItems doesn't work

Open BrianMacIntosh opened this issue 11 years ago • 2 comments

As I noted in this discussion thread, SteamUGC.GetSubscribedItems doesn't work - it never populates any items into the passed array. I was able to get it to work on my end by applying the [Out] attribute to the p/invoke call: public static extern uint ISteamUGC_GetSubscribedItems([Out] PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries);

I'm filing an issue rather than a pull request because I'm not too familiar with p/invoke and I'm not sure this is completely the right thing to do, but it fixed this issue for me.

Thanks for your wrapper, it's be very easy to implement in general!

BrianMacIntosh avatar Jan 08 '15 06:01 BrianMacIntosh

This has been causing me to go insane over the last week. I couldn't figure it out. Thank you

kinifi avatar Jan 08 '15 16:01 kinifi

This is quite scary as I've had no trouble with it for quite a long time. I went ahead and applied [In, Out] to all array arguments just to be on the safe side, hopefully preventing any future issues.

rlabrecque avatar Jan 08 '15 19:01 rlabrecque