Skip to content

Commit

Permalink
output dir param
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Nov 22, 2024
1 parent 200beac commit 5b9544d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ func CleanJSON(jsonStr string) string {
}

func ParseRawDataPart[T HasId](fileSource string, result chan map[int]T, dir string) {
file, err := os.ReadFile(filepath.Join(dir, "data", fileSource))
file, err := os.ReadFile(filepath.Join(dir, fileSource))
if err != nil {
fmt.Print(err)
}
Expand Down Expand Up @@ -722,7 +722,7 @@ func ParseRawData(dir string) *JSONGameData {
func ParseLangDict(langCode string, dir string) LangDict {
var err error

dataPath := filepath.Join(dir, "data", "languages")
dataPath := filepath.Join(dir, "languages")
var data LangDict
data.IdText = make(map[int]int)
data.Texts = make(map[int]string)
Expand Down

0 comments on commit 5b9544d

Please sign in to comment.