Skip to content

Commit f44ed05

Browse files
committed
Fix proton prefix detection for Heroic
1 parent bb8a379 commit f44ed05

File tree

1 file changed

+8
-0
lines changed
  • backend/installfinders/launchers/heroic

1 file changed

+8
-0
lines changed

backend/installfinders/launchers/heroic/heroic.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ func getHeroicKnownWinePrefixes(xdgConfigHomeEnv string) (map[string]string, err
7575
continue
7676
}
7777

78+
wineVersion, ok := gameData["wineVersion"].(map[string]interface{})
79+
if ok {
80+
wineType, ok := wineVersion["type"].(string)
81+
if ok && wineType == "proton" {
82+
prefix = filepath.Join(prefix, "pfx")
83+
}
84+
}
85+
7886
knownPrefixes[gameID] = prefix
7987
}
8088
}

0 commit comments

Comments
 (0)