Skip to content

Commit 13ace6f

Browse files
committed
Added steam ticket converter
1 parent 3c6517d commit 13ace6f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,17 @@ public static void VerifySteamID(string steamSessionTicket, Action<LootLockerVer
121121
LootLockerAPIManager.Verify(verifyRequest, onComplete);
122122
}
123123

124+
public static string SteamSessionTicket(ref byte[] ticket, uint ticketSize)
125+
{
126+
Array.Resize(ref ticket, (int)ticketSize);
127+
StringBuilder sb = new StringBuilder();
128+
for (int i = 0; i < ticketSize; i++)
129+
{
130+
sb.AppendFormat("{0:x2}", ticket[i]);
131+
}
132+
return sb.ToString();
133+
}
134+
124135
public static void VerifyID(string deviceId, Action<LootLockerVerifyResponse> onComplete)
125136
{
126137
if (!CheckInitialized())

0 commit comments

Comments
 (0)