mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-09 13:52:02 -04:00
Fix bad seek
This commit is contained in:
parent
227e86b19f
commit
ab0ee13365
1 changed files with 1 additions and 2 deletions
|
@ -210,7 +210,7 @@ func DownloadTitle(titleID, outputDirectory string, doDecryption bool, progressR
|
|||
return err
|
||||
}
|
||||
|
||||
tmdDataReader.Seek(8, io.SeekCurrent)
|
||||
tmdDataReader.Seek(2, io.SeekCurrent)
|
||||
|
||||
if err := binary.Read(tmdDataReader, binary.BigEndian, &contents[i].Type); err != nil {
|
||||
return err
|
||||
|
@ -252,7 +252,6 @@ func DownloadTitle(titleID, outputDirectory string, doDecryption bool, progressR
|
|||
for i := 0; i < int(contentCount); i++ {
|
||||
i := i
|
||||
g.Go(func() error {
|
||||
|
||||
filePath := filepath.Join(outputDir, fmt.Sprintf("%08X.app", contents[i].ID))
|
||||
if err := downloadFileWithSemaphore(ctx, progressReporter, client, fmt.Sprintf("%s/%08X", baseURL, contents[i].ID), filePath, true, sem); err != nil {
|
||||
if progressReporter.Cancelled() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue