summaryrefslogtreecommitdiff
path: root/tools/tmwcon/src/converter
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2011-04-02 00:03:52 +0200
committerJessica Tölke <jtoelke@mail.upb.de>2011-04-04 19:26:42 +0200
commit71f5817571ee3b050fb84d8ecf5f7d48d8c89811 (patch)
tree218afb3f3f5a780ce3999cfa54d5cb71dde71436 /tools/tmwcon/src/converter
parent0f5107a3d8215ce5c007813a63c45579daf60e47 (diff)
downloadserverdata-71f5817571ee3b050fb84d8ecf5f7d48d8c89811.tar.gz
serverdata-71f5817571ee3b050fb84d8ecf5f7d48d8c89811.tar.bz2
serverdata-71f5817571ee3b050fb84d8ecf5f7d48d8c89811.tar.xz
serverdata-71f5817571ee3b050fb84d8ecf5f7d48d8c89811.zip
Converter adds a warning in all autogenerated files
Diffstat (limited to 'tools/tmwcon/src/converter')
-rw-r--r--tools/tmwcon/src/converter/Process.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/tmwcon/src/converter/Process.java b/tools/tmwcon/src/converter/Process.java
index 088cee5b..8b01d0d0 100644
--- a/tools/tmwcon/src/converter/Process.java
+++ b/tools/tmwcon/src/converter/Process.java
@@ -136,7 +136,7 @@ public class Process {
List<String> output_elements = new ArrayList<String>();
processFiles(folder, output_elements);
PrintWriter importOut = Main.getWriter(_import);
- importOut.printf("map: %s.gat\n", name);
+ importOut.printf("// This file is generated automatically. All manually changes will be removed when running the Converter.\nmap: %s.gat\n", name);
Collections.sort(output_elements);
for (String s : output_elements)
importOut.println(s);
@@ -158,7 +158,7 @@ public class Process {
} else {
title = name;
}
-
+
File folder = new File(baseFolder + folderName);
folder.mkdirs();
@@ -183,8 +183,8 @@ public class Process {
PrintWriter warpOut = Main.getWriter(new File(folder, warpFile));
PrintWriter mobOut = Main.getWriter(new File(folder, mobFile));
- warpOut.printf("// %s warps\n\n", title);
- mobOut.printf("// %s mobs\n\n", title);
+ warpOut.printf("// This file is generated automatically. All manually changes will be removed when running the Converter.\n// %s warps\n\n", title);
+ mobOut.printf("// This file is generated automatically. All manually changes will be removed when running the Converter.\n// %s mobs\n\n", title);
TreeSet<Integer> mobs = new TreeSet<Integer>();
processObjects(map.getObjects(), name, warpOut, mobOut, mobs);
@@ -208,7 +208,7 @@ public class Process {
mobOut.flush();
mobOut.close();
-
+
makeInclude(name, folder);
return folderName;
@@ -221,6 +221,7 @@ public class Process {
List<String> output_elements = new ArrayList<String>();
+ output_elements.add("// This file is generated automatically. All manually changes will be removed when running the Converter.\n");
for (String folder : folders) {
if (folder == null) continue;
output_elements.add("import: " + folder + "/_import.txt");