Skip to content

Commit 525786e

Browse files
authored
2210 GDK (#597)
* 2210 GDK
1 parent 65a698f commit 525786e

File tree

62 files changed

+5150
-1080
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+5150
-1080
lines changed

External/Xal/Source/Xal/Include/Xal/xal_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ extern "C"
2020
/// YYYYMMDD Date string describing the date the build was created
2121
/// rrr QFE number (000 indicates base release)
2222
/// </summary>
23-
#define XAL_VERSION "2022.06.20220603.000"
23+
#define XAL_VERSION "2022.08.20220825.000"
2424

2525
}

Include/xsapi-c/achievements_c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ enum class XblAchievementRewardType : uint32_t
165165
enum class XblAchievementRarityCategory : uint32_t
166166
{
167167
/// <summary>
168-
/// The rarity is incalculable (e.g. no one has played the title yet, demoninator is 0).
168+
/// The rarity is incalculable (e.g. no one has played the title yet, denominator is 0).
169169
/// </summary>
170170
Unset = 0,
171171

Include/xsapi-c/achievements_manager_c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ STDAPI XblAchievementsManagerGetAchievementsByState(
260260
/// </summary>
261261
/// <param name="xboxUserId">The Xbox User ID of the player.</param>
262262
/// <param name="achievementId">The UTF-8 encoded achievement ID as defined by Dev Center.</param>
263-
/// <param name="currentProgess">The completion percentage of the achievement to indicate progress.
263+
/// <param name="currentProgress">The completion percentage of the achievement to indicate progress.
264264
/// Valid values are from 1 to 100. Set to 100 to unlock the achievement.
265265
/// Progress will be set by the server to the highest value sent</param>
266266
/// <returns>HRESULT return code for this API operation.</returns>
@@ -287,7 +287,7 @@ STDAPI XblAchievementsManagerGetAchievementsByState(
287287
STDAPI XblAchievementsManagerUpdateAchievement(
288288
_In_ uint64_t xboxUserId,
289289
_In_ const char* achievementId,
290-
_In_ uint8_t currentProgess
290+
_In_ uint8_t currentProgress
291291
) XBL_NOEXCEPT;
292292

293293
} //end extern "C"

Include/xsapi-c/multiplayer_c.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ enum class XblMultiplayerInitializationStage : uint32_t
323323
Evaluating,
324324

325325
/// <summary>
326-
/// Failed stage. If the first initilization episode didn't succeed, the session can't be initialized.
326+
/// Failed stage. If the first initialization episode didn't succeed, the session can't be initialized.
327327
/// </summary>
328328
Failed
329329
};
@@ -1138,7 +1138,7 @@ typedef struct XblMultiplayerSessionConstants
11381138
XblMultiplayerSessionCapabilities SessionCapabilities;
11391139
} XblMultiplayerSessionConstants;
11401140

1141-
#define XBL_MULTIPLAYER_DEVICE_TOKEN_MAX_LENGTH 40 // TODO confirm max size, not a GUID
1141+
#define XBL_MULTIPLAYER_DEVICE_TOKEN_MAX_LENGTH 40
11421142
#define XBL_MULTIPLAYER_SESSION_TEMPLATE_NAME_MAX_LENGTH 100
11431143
#define XBL_MULTIPLAYER_SESSION_NAME_MAX_LENGTH XBL_MULTIPLAYER_SESSION_TEMPLATE_NAME_MAX_LENGTH
11441144

@@ -2580,7 +2580,7 @@ STDAPI XblMultiplayerSessionSetMutableRoleSettings(
25802580
/// Gets the collection of members that are in the session or entering the session together.
25812581
/// </summary>
25822582
/// <param name="handle">Handle to the multiplayer session.</param>
2583-
/// <param name="members">Passes back a pointer to array of session member ojects.
2583+
/// <param name="members">Passes back a pointer to array of session member objects.
25842584
/// The memory for the returned pointer will remain valid for the life of the XblMultiplayerSessionHandle object until it is closed.</param>
25852585
/// <param name="membersCount">Passes back the size of the returned array.</param>
25862586
/// <returns>HRESULT return code for this API operation.</returns>
@@ -3243,7 +3243,7 @@ STDAPI XblMultiplayerSearchHandleGetJoinRestriction(
32433243
) XBL_NOEXCEPT;
32443244

32453245
/// <summary>
3246-
/// Get whether or not the session associated with the search handle is temporaraly closed for joining.
3246+
/// Get whether or not the session associated with the search handle is temporarily closed for joining.
32473247
/// </summary>
32483248
/// <param name="handle">Handle to the search handle details.</param>
32493249
/// <param name="closed">Passes back whether the session is closed or not.</param>
@@ -3270,7 +3270,7 @@ STDAPI XblMultiplayerSearchHandleGetMemberCounts(
32703270
/// Get the creation time of the search handle.
32713271
/// </summary>
32723272
/// <param name="handle">Handle to the search handle details.</param>
3273-
/// <param name="creationTime">Passes back the time the serach handle was created in MPSD (not the local object).</param>
3273+
/// <param name="creationTime">Passes back the time the search handle was created in MPSD (not the local object).</param>
32743274
/// <returns>HRESULT return code for this API operation.</returns>
32753275
STDAPI XblMultiplayerSearchHandleGetCreationTime(
32763276
_In_ XblMultiplayerSearchHandle handle,
@@ -3936,7 +3936,7 @@ STDAPI XblMultiplayerGetActivitiesWithPropertiesForUsersResult(
39363936
/// <returns>HRESULT return code for this API operation.</returns>
39373937
/// <remarks>
39383938
/// This method immediately enables the RTA connection, but the in order to receive session changed callbacks, the session
3939-
/// must be written again after enabling sunscriptions.
3939+
/// must be written again after enabling subscriptions.
39403940
/// </remarks>
39413941
STDAPI XblMultiplayerSetSubscriptionsEnabled(
39423942
_In_ XblContextHandle xblContext,

Include/xsapi-c/multiplayer_manager_c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ STDAPI XblMultiplayerManagerLobbySessionSetProperties(
10981098
/// <remarks>
10991099
/// This function sets the value, represented as a JSON string, of a custom property for the lobby session. Custom properties
11001100
/// can be changed at any time. If custom properties are shared between devices, or may be updated by several devices
1101-
/// at the same time, use this function to ensure atomicity and resolve any conflicts between devices while changing the values of those cusotm properties.
1101+
/// at the same time, use this function to ensure atomicity and resolve any conflicts between devices while changing the values of those custom properties.
11021102
/// If a custom property isn't shared across devices, use the <see cref="XblMultiplayerManagerLobbySessionSetProperties"/> function instead
11031103
/// to change the value of that custom property.
11041104
/// <para>The service may reject the request to change the custom property if a race condition occurs due to a conflict.
@@ -1363,7 +1363,7 @@ STDAPI XblMultiplayerManagerGameSessionSetProperties(
13631363
/// <remarks>
13641364
/// This function sets the value, represented as a JSON string, of a custom property for the game session. Custom properties
13651365
/// can be changed at any time. If custom properties are shared between devices, or may be updated by several devices
1366-
/// at the same time, use this function to ensure atomicity and resolve any conflicts between devices while changing the values of those cusotm properties.
1366+
/// at the same time, use this function to ensure atomicity and resolve any conflicts between devices while changing the values of those custom properties.
13671367
/// If a custom property isn't shared across devices, use the <see cref="XblMultiplayerManagerGameSessionSetProperties"/> function instead
13681368
/// to change the value of that custom property.
13691369
/// <para>The service may reject the request to change the custom property if a race condition occurs due to a conflict.

Include/xsapi-c/title_storage_c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ extern "C"
1717

1818
#define XBL_TITLE_STORAGE_BLOB_PATH_MAX_LENGTH (257 * 3)
1919
#define XBL_TITLE_STORAGE_BLOB_DISPLAY_NAME_MAX_LENGTH (129 * 3)
20-
#define XBL_TITLE_STORAGE_BLOB_ETAG_MAX_LENGTH (18 * 3) // TODO confirm with Azure Blob Services team
20+
#define XBL_TITLE_STORAGE_BLOB_ETAG_MAX_LENGTH (18 * 3)
2121

2222
/// <summary>
2323
/// Defines values used to indicate title storage type.

NuGet.config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Auto generated file from Gardener Plugin CentralFeedServiceAdoptionPlugin -->
3+
<configuration>
4+
<packageSources>
5+
<clear />
6+
<add key="xbox.services_PublicPackages" value="https://pkgs.dev.azure.com/microsoft/xbox.services/_packaging/xbox.services_PublicPackages/nuget/v3/index.json" />
7+
</packageSources>
8+
</configuration>

Source/Services/Leaderboard/leaderboard_result.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,14 @@ LeaderboardResult::SerializeQuery(XblLeaderboardQuery* query, char* buffer)
254254
query->xboxUserId = m_globalQuery->xuid.empty() ? 0 : utils::internal_string_to_uint64(m_globalQuery->xuid);
255255

256256
utils::strcpy(buffer, m_globalQuery->name.size() + 1, m_globalQuery->name.c_str());
257-
query->leaderboardName = static_cast<char*>(buffer);
257+
if (m_globalQuery->isTitleManaged)
258+
{
259+
query->statName = static_cast<char*>(buffer);
260+
}
261+
else
262+
{
263+
query->leaderboardName = static_cast<char*>(buffer);
264+
}
258265
buffer += m_globalQuery->name.size() + 1;
259266

260267
m_additionalColumnleaderboardNamesC.resize(m_globalQuery->columns.size());

Source/Services/Multiplayer/Manager/multiplayer_lobby_client.cpp

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,11 +1201,22 @@ HRESULT MultiplayerLobbyClient::CreateGameFromLobby() noexcept
12011201
}
12021202
else if(m_setTransferHandleAttempt++ < MAX_CONNECTION_ATTEMPTS)
12031203
{
1204-
m_sessionToCommit = writeSessionResult.ExtractPayload();
1205-
// Retry setting transfer handle after a small delay
1206-
HRESULT hr = m_lobbyClient->m_queue.RunWork([op] {
1207-
op->SetTransferHandleToPending();
1208-
}, RETRY_DELAY_MS);
1204+
1205+
std::shared_ptr<XblMultiplayerSession> sessionToCommitTemp = writeSessionResult.ExtractPayload();
1206+
1207+
HRESULT hr = S_OK;
1208+
if (sessionToCommitTemp != nullptr) // handle rare case where an empty body is returned
1209+
{
1210+
m_sessionToCommit = sessionToCommitTemp;
1211+
// Retry setting transfer handle after a small delay
1212+
hr = m_lobbyClient->m_queue.RunWork([op] {
1213+
op->SetTransferHandleToPending();
1214+
}, RETRY_DELAY_MS);
1215+
}
1216+
else
1217+
{
1218+
hr = writeSessionResult.Hresult();
1219+
}
12091220

12101221
if (FAILED(hr))
12111222
{

0 commit comments

Comments
 (0)