ptPatchCallback

GameSpy SDK

ptPatchCallback

This callback gets called when a patch is being checked for with either ptCheckForPatch or ptCheckForPatchAndTrackUsage.

typedef void (*ptPatchCallback)(
PTBool available,
PTBool mandatory,
const gsi_char * versionName,
int fileID,
const gsi_char * downloadURL,
void * param );
RoutineRequired HeaderDistribution
ptPatchCallback<pt.h>SDKZIP

Parameters

available
[in] PTTrue if a newer version is available. If PTFalse, ignore the other parameters.
mandatory
[in] If PTTrue, this patch has been marked as mandatory.
versionName
[in] A user-readable display name for the new version.
fileID
[in] A FilePlanet file ID for the patch. Can be 0. Used to form a FilePlanet URL
downloadURL
[in] If not an empty string, contains a URL to download the patch from.
param
[in] This is optional user-data that was passed to ptCheckForPatch.

Remarks

If a patch is available, and the fileID is not 0, then ptLookupFilePlanetInfo can be used to find download sites.