mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-15 07:34:47 -04:00
Port title database and cdecrypt to Go (#87)
* Experimental removal of cdecrypt * Pushing before cdecrypt port * Some progress... * Replace title database with native Go * Update title db url * Almost working decryption and extraction * Almost there * Remove unnecessary type conversion * Fix directory structure creation * Finally fix decryption * Cleanup print statements * Do not write FST to file * Add progress * Add encrypted contents decryption
This commit is contained in:
parent
b031be4ecd
commit
e40d499b72
19 changed files with 589 additions and 2897 deletions
8
utils.go
8
utils.go
|
@ -1,11 +1,19 @@
|
|||
package wiiudownloader
|
||||
|
||||
import (
|
||||
"cmp"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func min[T cmp.Ordered](a, b T) T {
|
||||
if a < b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func isThisDecryptedFile(path string) bool {
|
||||
return strings.Contains(path, "code") || strings.Contains(path, "content") || strings.Contains(path, "meta")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue