Fix Windows Wrappers and Extensions

This commit is contained in:
2026-04-10 08:13:09 +02:00
parent febd109041
commit 3a0d4eb990
4 changed files with 108 additions and 4 deletions
+10
View File
@@ -8303,15 +8303,22 @@ func TestBuildAndPackageIncludesCompiled2DAAndTopAssets(t *testing.T) {
}
found2DA := false
foundAsset := false
foundTLK := false
for _, resource := range archive.Resources {
ext, _ := erf.ExtensionForResourceType(resource.Type)
key := strings.ToLower(resource.Name) + "." + ext
if key == "repadjust.2da" {
if resource.Type != 0x07E2 {
t.Fatalf("expected repadjust.2da to keep resource type 0x07E2, got 0x%04X", resource.Type)
}
found2DA = true
}
if key == "testicon.png" {
foundAsset = true
}
if ext == "tlk" {
foundTLK = true
}
}
if !found2DA {
t.Fatalf("expected repadjust.2da in top package")
@@ -8319,6 +8326,9 @@ func TestBuildAndPackageIncludesCompiled2DAAndTopAssets(t *testing.T) {
if !foundAsset {
t.Fatalf("expected testicon.png in top package")
}
if foundTLK {
t.Fatalf("expected top package hak to exclude tlk resources")
}
if _, err := os.Stat(result.OutputTLKPath); err != nil {
t.Fatalf("expected packaged tlk output: %v", err)
}