Skip to content

Commit 913f7ae

Browse files
authored
uev across the board
1 parent 0b78c10 commit 913f7ae

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Usage of ueversionator:
2020
-assume-valid
2121
assumes current archive is valid, if present
2222
-basedir string
23-
base directory to download engine bundles in (default "ue4")
23+
base directory to download engine bundles in (default "ue")
2424
-bundle string
2525
request UE build bundle (default "editor")
2626
-config string

main.go

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
var (
1818
iniConfig = flag.String("config", ".ueversionator", "ueversionator config file")
1919
userIniConfig = flag.String("user-config", ".uev-user", "ueversionator user config file")
20-
baseDir = flag.String("basedir", "ue4", "base directory to download engine bundles in")
20+
baseDir = flag.String("basedir", "ue", "base directory to download engine bundles in")
2121
bundle = flag.String("bundle", "editor", "request UE build bundle")
2222
ue5 = flag.Bool("ue5", false, "UE5 build compat")
2323
fetchSymbols = flag.Bool("with-symbols", false, "include UE engine debug symbols")
@@ -67,10 +67,7 @@ func ueversionator() (string, string, error) {
6767
shouldFetchSymbols := *fetchSymbols
6868

6969
if !shouldFetchSymbols {
70-
section := "ue4v-user"
71-
if *ue5 {
72-
section = "uev-user"
73-
}
70+
section := "uev-user"
7471
symbolsConfig, err := cfg.Section(section).GetKey("symbols")
7572
if err == nil {
7673
shouldFetchSymbols = symbolsConfig.MustBool(false)
@@ -89,10 +86,7 @@ func ueversionator() (string, string, error) {
8986

9087
func getDownloadDirectory(path string) string {
9188
cfg, _ := ini.LooseLoad(*userIniConfig)
92-
section := "ue4v-user"
93-
if *ue5 {
94-
section = "uev-user"
95-
}
89+
section := "uev-user"
9690
key, err := cfg.Section(section).GetKey("download_dir")
9791
if err != nil {
9892
key, _ = cfg.Section(section).NewKey("download_dir", "")

0 commit comments

Comments
 (0)