feat: 数据包下载 (WIP)

This commit is contained in:
Pigeon0v0
2024-07-27 12:54:27 +08:00
parent 9c0ae93d7d
commit f45322905f
8 changed files with 270 additions and 8 deletions
@@ -13,6 +13,10 @@
''' 资源包。
''' </summary>
ResourcePack = 2
''' <summary>
''' 数据包。
''' </summary>
DataPack = 4
End Enum
Public Enum CompModLoaderType
'https://docs.curseforge.com/?http#tocS_ModLoaderType
@@ -748,8 +752,8 @@ NoSubtitle:
Address += "&classId=6"
Case CompType.ModPack
Address += "&classId=4471"
Case CompType.ResourcePack
'FUTURE: Res
Case CompType.DataPack
Address += "&classId=6945"
End Select
Address += "&categoryId=" & If(Tag = "", "0", Tag.Before("/"))
If ModLoader <> CompModLoaderType.Any Then Address += "&modLoaderType=" & CType(ModLoader, Integer)