Skip to content
Open
Changes from 2 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
15 changes: 13 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,18 @@ 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
found := false
for k, v := range userConfig {
if strings.EqualFold(k, "BetaKey") {
betakey = v.(string)
found = true
break
}
}

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