Skip to content

Commit

Permalink
Add steam deck login field
Browse files Browse the repository at this point in the history
  • Loading branch information
LossyDragon committed Aug 2, 2024
1 parent 7789698 commit 139a21d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public class LogOnDetails {

private EUIMode uiMode;

private boolean isSteamDeck;

public LogOnDetails() {
accountInstance = SteamID.DESKTOP_INSTANCE;
accountID = 0L;
Expand All @@ -60,6 +62,7 @@ public LogOnDetails() {

chatMode = ChatMode.DEFAULT;
uiMode = EUIMode.Unknown;
isSteamDeck = false;
}

/**
Expand Down Expand Up @@ -368,4 +371,22 @@ public EUIMode getUiMode() {
public void setUiMode(EUIMode uiMode) {
this.uiMode = uiMode;
}

/**
* Gets whether this is Steam Deck login.
*
* @return The Steam Deck login value.
*/
public boolean isSteamDeck() {
return isSteamDeck;
}

/**
* Sets whether this is Steam Deck login.
*
* @param steamDeck The Steam Deck login value.
*/
public void setSteamDeck(boolean steamDeck) {
isSteamDeck = steamDeck;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ public void logOn(LogOnDetails details) {
logon.getBody().setUiMode(details.getUiMode().code());
}

if (details.isSteamDeck()) {
logon.getBody().setIsSteamDeck(true);
}

// steam guard
if (!Strings.isNullOrEmpty(details.getAuthCode())) {
logon.getBody().setAuthCode(details.getAuthCode());
Expand Down

0 comments on commit 139a21d

Please sign in to comment.