Skip to content

Commit

Permalink
remove file overhead from mpq insert
Browse files Browse the repository at this point in the history
  • Loading branch information
Frotty committed Mar 7, 2019
1 parent 13cada0 commit ef1d77f
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -137,10 +137,11 @@ private void applyProjectConfig(WurstProjectConfigData projectConfig, File targe
StringWriter sw = new StringWriter();
w3I.injectConfigsInJassScript(inputStream, sw);

File file = new File("wc3libs.j");
Files.write(sw.toString().getBytes(), file);
File file = new File(getBuildDir(), "wc3libs.j");
byte[] scriptBytes = sw.toString().getBytes();
Files.write(scriptBytes, file);
Pjass.runPjass(file);
mpq.insertFile("war3map.j", file);
mpq.insertFile("war3map.j", scriptBytes);

File w3iFile = new File("w3iFile");
w3I.write(w3iFile);
Expand Down

0 comments on commit ef1d77f

Please sign in to comment.