共用方式為


XGameSaveBlobInfoCallback

Callback function to retrieve the results of XGameSaveEnumerateBlobInfo or XGameSaveEnumerateBlobInfoByName.

Syntax

bool XGameSaveBlobInfoCallback(  
         const XGameSaveBlobInfo* info,  
         void* context  
)  

Parameters

info   _In_
Type: XGameSaveBlobInfo*

XGameSaveBlobInfo that was enumerated

context   _In_opt_
Type: void*

Optional object containing relevant information for the function. Usually the calling object is passed in using this parameter.

Return value

Type: bool

Return false to stop the enumeration.

Remarks

This callback function is passed into XGameSaveEnumerateBlobInfo or XGameSaveEnumerateBlobInfoByName. While those functions are called to enumerate the blob information, this callback function is where enumerated blobs are actually acted upon. Use this function to store blob information for active players or to do some work with the retrieved information.

Requirements

Header: XGameSave.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XGameSave
XGameSaveEnumerateBlobInfo
XGameSaveEnumerateBlobInfoByName
Game saves errors