xboxlive_set_savedata_user

This function specifies that future file operations which operate in the save game area (i.e. all file writes, and reads from files that aren't in the bundle area) will be associated with the specified user ID pointer. This can be called as often as necessary to redirect save data to the appropriate user, or you can use the constant pointer_null to save to the generic machine storage area.

 

Syntax:

xboxlive_set_savedata_user(user_id);

ArgumentTypeDescription
user_idXbox User ID or pointer_nullThe user ID (a pointer) to set for saving, or pointer_null

 

Returns:

N/A

 

Example:

if (xboxlive_get_savedata_user() != user_id[0])
{
    xboxlive_set_savedata_user(user_id[0]);
}

The above code checks to see if a user is currently assigned as the save target, and if they are not then they are assigned.