From c929eb3a1c79991f04b488c52a91d9657b973c4d Mon Sep 17 00:00:00 2001 From: Iluha <92525749+Iluhadesu@users.noreply.github.com> Date: Tue, 13 Jun 2023 20:38:24 +0200 Subject: [PATCH] Adds hooks for QRCode and RejectedToken --- DepotDownloader/Steam3Session.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/DepotDownloader/Steam3Session.cs b/DepotDownloader/Steam3Session.cs index 2a197377..51260f1e 100644 --- a/DepotDownloader/Steam3Session.cs +++ b/DepotDownloader/Steam3Session.cs @@ -546,12 +546,16 @@ namespace DepotDownloader { Console.WriteLine(); Console.WriteLine("The QR code has changed:"); + // Display the URL instead of the QR code + Console.WriteLine("[QRCode]|[URL]|{0}", session.ChallengeURL); - DisplayQrCode(session.ChallengeURL); + //DisplayQrCode(session.ChallengeURL); }; // Draw initial QR code immediately - DisplayQrCode(session.ChallengeURL); + // Display the URL instead of the QR code + Console.WriteLine("[QRCode]|[URL]|{0}", session.ChallengeURL); + //DisplayQrCode(session.ChallengeURL); } catch (TaskCanceledException) { @@ -559,7 +563,7 @@ namespace DepotDownloader } catch (Exception ex) { - Console.Error.WriteLine("Failed to authenticate with Steam: " + ex.Message); + Console.Error.WriteLine("[Error]|[SteamLib]|Failed to authenticate with Steam: " + ex.Message); Abort(false); return; } @@ -585,7 +589,7 @@ namespace DepotDownloader } catch (Exception ex) { - Console.Error.WriteLine("Failed to authenticate with Steam: " + ex.Message); + Console.Error.WriteLine("[Error]|[SteamLib]|Failed to authenticate with Steam: " + ex.Message); Abort(false); return; } @@ -665,7 +669,7 @@ namespace DepotDownloader AccountSettingsStore.Save(); // TODO: Handle gracefully by falling back to password prompt? - Console.WriteLine("Access token was rejected."); + Console.WriteLine("[Error]|[TokenRejected]|Access token was rejected."); Abort(false); return; }