added fedora flatpak path
parent
a5b4585a44
commit
7514053595
16
banana.go
16
banana.go
|
@ -123,6 +123,7 @@ https://www.esoui.com/downloads/info1146-LibCustomMenu.html
|
|||
`
|
||||
ESO_LIVE_PATH_WINDOWS = `Documents\Elder Scrolls Online\live`
|
||||
ESO_LIVE_PATH_STEAMOS = ".steam/steam/steamapps/compatdata/306130/pfx/drive_c/users/steamuser/Documents/Elder Scrolls Online/live/"
|
||||
ESO_LIVE_PATH_FEDORA = ".var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/compatdata/306130/pfx/drive_c/users/steamuser/Documents/Elder Scrolls Online/live/"
|
||||
TCC_PRICE_TABLE_URI = "https://us.tamrieltradecentre.com/download/PriceTable"
|
||||
)
|
||||
|
||||
|
@ -141,9 +142,20 @@ func eso_live_path_get() string {
|
|||
|
||||
if runtime.GOOS == "windows" {
|
||||
return filepath.Join(home_path, ESO_LIVE_PATH_WINDOWS)
|
||||
} else {
|
||||
return filepath.Join(home_path, ESO_LIVE_PATH_STEAMOS)
|
||||
}
|
||||
|
||||
var full_path string
|
||||
|
||||
for _, each := range []string{ESO_LIVE_PATH_STEAMOS, ESO_LIVE_PATH_FEDORA} {
|
||||
full_path = filepath.Join(home_path, each)
|
||||
|
||||
_, error := os.Stat(full_path)
|
||||
if error == nil {
|
||||
return full_path
|
||||
}
|
||||
}
|
||||
|
||||
panic("compatdata/306130 unknown")
|
||||
}
|
||||
|
||||
func addon_list_create(addon_list_path string) error {
|
||||
|
|
Loading…
Reference in New Issue