Skip to content

Commit

Permalink
PackageBuilder: Filter skies for PWAD Mode
Browse files Browse the repository at this point in the history
TODO: Find a way via zscript
  • Loading branch information
Lemon-King committed Jun 23, 2024
1 parent 7fe4119 commit e6cb0d1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/main/java/lemon/hxdd/builder/PackageBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,26 @@ private void FixPatches() {
PostProcessImageData(path, set.getValue()[0], set.getValue()[1]);
this.app.controller.SetCurrentProgress(++count / (float)colorSwap.size());
}

// Move conflicting patches to filter
File SKY1 = new File(pathTemporary + "/patches/SKY1.png");
File SKY2 = new File(pathTemporary + "/patches/SKY2.png");
File SKY3 = new File(pathTemporary + "/patches/SKY3.png");
try {
File dirFile = new File(pathTemporary + "/filter/game-raven/patches");
if (!dirFile.exists()) {
dirFile.mkdirs();
}
Path target = new File(pathTemporary + "/filter/game-raven/patches/SKY1.png").toPath();
Files.move(SKY1.toPath(), target, REPLACE_EXISTING);
target = new File(pathTemporary + "/filter/game-raven/patches/SKY2.png").toPath();
Files.move(SKY2.toPath(), target, REPLACE_EXISTING);
target = new File(pathTemporary + "/filter/game-raven/patches/SKY3.png").toPath();
Files.move(SKY3.toPath(), target, REPLACE_EXISTING);
} catch (IOException e) {
e.printStackTrace();
}

}

private void ExtractFilesFromGZDoom() {
Expand Down

0 comments on commit e6cb0d1

Please sign in to comment.