Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions backend/installfinders/launchers/steam/steam.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"os"
"path/filepath"
"strconv"
"strings"

"github.com/andygrunwald/vdf"

Expand Down Expand Up @@ -99,8 +100,16 @@ func FindInstallationsSteam(steamPath string, launcher string, platform common.L

var branch common.GameBranch
userConfig := manifest["AppState"].(map[string]interface{})["UserConfig"].(map[string]interface{})
betakey, ok := userConfig["betakey"]
if !ok {

var betakey string
for k, v := range userConfig {
if strings.EqualFold(k, "BetaKey") {
betakey = v.(string)
break
}
}

if betakey == "" {
branch = common.BranchStable
} else {
if betakey == "experimental" {
Expand Down