Skip to content

Commit

Permalink
Write up TicketClient oddness
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfairh committed May 1, 2024
1 parent 932cd36 commit 5514b4b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Sources/TicketClient/TicketClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ import Foundation
// A quick test that the encryptedappticket stuff is linking properly.
// Code smash-ported from SpaceWar, ticket generation is rate-limited
// so this routine doesn't run automatically.
//
// This has become broken in SDK 1.59, April 2024. Getting a failure from
// `SteamEncryptedAppTicket_BDecryptTicket()` suggesting the hard-coded key
// is wrong? But even the spacewar steamworks demo code doesn't work, gets
// the same result. Notable that code is marked WIN32 only though, and the
// dylib isn't set up properly in the project.
//
// So, dunno. Shame.

final class Client {
let steam: SteamAPI
Expand Down Expand Up @@ -66,7 +74,6 @@ struct Main {
0x53, 0x3b, 0xa3, 0x3c, 0xd8, 0x03, 0xbd, 0xbd ]

print("TicketClient testbed, steamworks version \(SteamAPI.steamworksVersion)")
// XXX need to fix? SteamAPI.logger.logLevel = .trace
guard let client = Client() else {
return
}
Expand Down

0 comments on commit 5514b4b

Please sign in to comment.