Fix Windows Wrappers and Extensions
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user