mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-11-27 06:50:35 +00:00
Create CUE and BIN in the same folder
This commit is contained in:
parent
054c9c9ce5
commit
128f59a49f
@ -127,7 +127,7 @@ func makeDisc(cuePath string, inputPath string, fileListPath string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
imgPath := strings.Replace(filepath.Base(cuePath), ".cue", ".bin", 1)
|
||||
imgPath := strings.Replace(cuePath, ".cue", ".bin", 1)
|
||||
|
||||
f, err := os.Create(imgPath)
|
||||
if err != nil {
|
||||
@ -189,7 +189,7 @@ func makeDisc(cuePath string, inputPath string, fileListPath string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := writeCue(cuePath, imgPath, mode); err != nil {
|
||||
if err := writeCue(cuePath, filepath.Base(imgPath), mode); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user