Add a Pak parser for Dune II archives.

This commit is contained in:
Paul Chote
2013-12-01 14:35:13 +13:00
parent 7fac962c09
commit 57c2e75a59
4 changed files with 103 additions and 1 deletions

View File

@@ -57,6 +57,8 @@ namespace OpenRA.FileFormats
throw new NotImplementedException("Creating .RS archives is unsupported");
else if (filename.EndsWith(".Z", StringComparison.InvariantCultureIgnoreCase))
throw new NotImplementedException("Creating .Z archives is unsupported");
else if (filename.EndsWith(".PAK", StringComparison.InvariantCultureIgnoreCase))
throw new NotImplementedException("Creating .PAK archives is unsupported");
else
return new Folder(filename, order, content);
}
@@ -77,6 +79,8 @@ namespace OpenRA.FileFormats
return new D2kSoundResources(filename, order);
else if (filename.EndsWith(".Z", StringComparison.InvariantCultureIgnoreCase))
return new InstallShieldPackage(filename, order);
else if (filename.EndsWith(".PAK", StringComparison.InvariantCultureIgnoreCase))
return new PakFile(filename, order);
else
return new Folder(filename, order);
}