mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-06-04 00:58:43 -04:00
Minor progress window changes
This commit is contained in:
parent
2084b1313d
commit
8060005529
6 changed files with 45 additions and 19 deletions
18
gtitles.go
18
gtitles.go
|
@ -9,7 +9,10 @@ package wiiudownloader
|
|||
#include <ctype.h>
|
||||
*/
|
||||
import "C"
|
||||
import "unsafe"
|
||||
import (
|
||||
"strconv"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
MCP_REGION_JAPAN = 0x01
|
||||
|
@ -150,3 +153,16 @@ func GetCategoryFromFormattedCategory(formattedCategory string) uint8 {
|
|||
return TITLE_CATEGORY_ALL
|
||||
}
|
||||
}
|
||||
|
||||
func getTitleEntryFromTid(tid string) TitleEntry {
|
||||
titleID, err := strconv.ParseUint(tid, 16, 64)
|
||||
if err != nil {
|
||||
return TitleEntry{}
|
||||
}
|
||||
for _, entry := range GetTitleEntries(TITLE_CATEGORY_ALL) {
|
||||
if entry.TitleID == titleID {
|
||||
return entry
|
||||
}
|
||||
}
|
||||
return TitleEntry{}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue