Fix Topdata Build

This commit is contained in:
2026-04-13 14:51:40 +02:00
parent b4c28b667b
commit a4fa2156ca
+5 -1
View File
@@ -352,7 +352,7 @@ func runBuildTopData(ctx context) error {
return err
}
result, err := topdata.Build(p, func(message string) {
result, err := topdata.BuildAndPackage(p, func(message string) {
fmt.Fprintf(ctx.stdout, "[build-topdata] %s\n", message)
})
if err != nil {
@@ -363,8 +363,12 @@ func runBuildTopData(ctx context) error {
fmt.Fprintf(ctx.stdout, "mode: %s\n", result.Mode)
fmt.Fprintf(ctx.stdout, "topdata 2da output: %s\n", result.Output2DADir)
fmt.Fprintf(ctx.stdout, "topdata tlk output: %s\n", result.OutputTLKDir)
fmt.Fprintf(ctx.stdout, "top package hak: %s\n", result.OutputHAKPath)
fmt.Fprintf(ctx.stdout, "top package tlk: %s\n", result.OutputTLKPath)
fmt.Fprintf(ctx.stdout, "2da files: %d\n", result.Files2DA)
fmt.Fprintf(ctx.stdout, "tlk files: %d\n", result.FilesTLK)
fmt.Fprintf(ctx.stdout, "top package resources: %d\n", result.HAKResources)
fmt.Fprintf(ctx.stdout, "top package assets: %d\n", result.AssetFiles)
if result.WikiOutputDir != "" {
fmt.Fprintf(ctx.stdout, "wiki output: %s\n", result.WikiOutputDir)
fmt.Fprintf(ctx.stdout, "wiki pages: %d\n", result.WikiPages)