From e083cbedd953b47741e7dd9b69053688b5d609a2 Mon Sep 17 00:00:00 2001 From: TBK Date: Sat, 18 Oct 2025 11:49:43 +0200 Subject: [PATCH] Rename AccountType enum value 9 to match Steamworks SDK The enum value 9 is renamed "ConsoleUser" to align with Valve's official Steamworks SDK definition (k_EAccountTypeConsoleUser). According to the SDK, this represents a "Fake SteamID for local PSN account on PS3 or Live account on 360, etc." --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3f43977..74133b2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -408,7 +408,7 @@ pub enum AccountType { ContentServer = 6, Clan = 7, Chat = 8, - P2PSuperSeeder = 9, + ConsoleUser = 9, AnonUser = 10, } @@ -425,7 +425,7 @@ impl TryFrom for AccountType { 6 => Ok(AccountType::ContentServer), 7 => Ok(AccountType::Clan), 8 => Ok(AccountType::Chat), - 9 => Ok(AccountType::P2PSuperSeeder), + 9 => Ok(AccountType::ConsoleUser), 10 => Ok(AccountType::AnonUser), _ => Err(SteamIDParseError), } @@ -447,8 +447,8 @@ pub fn account_type_to_char(account_type: AccountType, flags: InstanceFlags) -> InstanceFlags::Lobby => 'L', _ => 'T', }, + AccountType::ConsoleUser => 'U', AccountType::AnonUser => 'a', - AccountType::P2PSuperSeeder => 'i', // Invalid (?) } }