Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/handlers/wad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class wadHandler implements FormatHandler {
}
}

} else if (inputFormat.internal === "zip") {
} else if (inputFormat.internal === "zip" && outputFormat.internal === "wad") {
// ZIP → WAD: each zip entry becomes a lump
for (const file of inputFiles) {
const baseName = file.name.replace(/\.zip$/i, "");
Expand Down Expand Up @@ -228,6 +228,9 @@ class wadHandler implements FormatHandler {
outputFiles.push({ bytes: wadBytes, name: baseName + ".wad" });
}
}
else {
throw new Error("Invalid input-output.");
}

return outputFiles;
}
Expand Down
Loading