Fix decryption

This commit is contained in:
Xpl0itU 2024-04-18 18:15:36 +02:00
parent 59f37f9bad
commit dd1e9eb4d9

View file

@ -423,6 +423,7 @@ func DecryptContents(path string, progressReporter ProgressReporter, deleteEncry
// Check if all contents are present and how they are named
for i := 0; i < len(tmd.Contents); i++ {
tmd.Contents[i].CIDStr = fmt.Sprintf("%08X", tmd.Contents[i].ID)
_, err := os.Stat(filepath.Join(path, tmd.Contents[i].CIDStr+".app"))
if err != nil {
tmd.Contents[i].CIDStr = fmt.Sprintf("%08x", tmd.Contents[i].ID)