diff options
Diffstat (limited to 'tools/tmwcon/src/converter/Main.java')
-rw-r--r-- | tools/tmwcon/src/converter/Main.java | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tools/tmwcon/src/converter/Main.java b/tools/tmwcon/src/converter/Main.java index 4f3a6947..c5aa4257 100644 --- a/tools/tmwcon/src/converter/Main.java +++ b/tools/tmwcon/src/converter/Main.java @@ -66,6 +66,17 @@ public class Main extends Thread { public static void run(String[] args, int unused) { reader = new XMLMapTransformer(); + PrintWriter summary = null; + + try { + File temp = new File("summary.txt"); + temp.createNewFile(); + summary = new PrintWriter(temp); + } catch (Exception e) { + System.out.println("Problem opening summary file for writing:"); + e.printStackTrace(); + } + File folder = new File("server-data/data/"); Process.prepWLK(folder); @@ -76,7 +87,13 @@ public class Main extends Thread { for (File f : tmxs) { name = getName(folder, f); System.out.printf("== %s ==\n", name); - Process.processMap(name, loadMap(f)); + if (summary != null) summary.printf("== %s ==\n", name); + Process.processMap(name, loadMap(f), summary); + } + + if (summary != null) { + summary.flush(); + summary.close(); } } |