February 14, 2007

Source SDK API Question

I'm trying to add support for the USK version of "SiN Episodes" to "USEMP," as well as provide a slightly nicer error message when trying to mount an AppID that the customer doesn't have.

Is there an API available as part of the regular Source SDK to find out whether or not a particular AppID has been purchased?

1 comment:

Andrew Timson said...

Well, you could always try mounting it, and popping an error message if it fails:

if(filesystem->MountSteamContent(id)==FILESYSTEM_MOUNT_FAILED)
        /* die gracefully */

A quick passover of the wiki/headers doesn't show any other functions that would allow this without actually mounting the content (at least, not in the exposed part of the SDK).