summaryrefslogtreecommitdiff
path: root/tools/tmwcon/src/converter/WLKInterface.java
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-06-13 00:06:27 -0600
committerJared Adams <jaxad0127@gmail.com>2009-06-17 11:16:22 -0600
commit6236a4d9f359de8af257b1ad441fe646caeebc4d (patch)
treee1e0ad3d95cc05c1fa7a32558c632ff5149f1c57 /tools/tmwcon/src/converter/WLKInterface.java
parent890009b01b5217202e37a126c9ea786832f121f5 (diff)
downloadserverdata-6236a4d9f359de8af257b1ad441fe646caeebc4d.tar.gz
serverdata-6236a4d9f359de8af257b1ad441fe646caeebc4d.tar.bz2
serverdata-6236a4d9f359de8af257b1ad441fe646caeebc4d.tar.xz
serverdata-6236a4d9f359de8af257b1ad441fe646caeebc4d.zip
Adjust tmwcon to skip maps that haven't changed
Diffstat (limited to 'tools/tmwcon/src/converter/WLKInterface.java')
-rw-r--r--tools/tmwcon/src/converter/WLKInterface.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/tmwcon/src/converter/WLKInterface.java b/tools/tmwcon/src/converter/WLKInterface.java
index 36d2b367..b9e0cb20 100644
--- a/tools/tmwcon/src/converter/WLKInterface.java
+++ b/tools/tmwcon/src/converter/WLKInterface.java
@@ -11,17 +11,12 @@ import tiled.core.*;
import tiled.plugins.tmw.*;
public class WLKInterface {
- private File folder;
- public WLKInterface(File folder) {
+ public WLKInterface() {
+ // See if the writer is available
WLKWriter.class.getName();
- this.folder = folder;
- File f = new File("server-data/data");
- f.mkdirs();
}
- public void write(String name, Map map) {
- File wlk = new File(folder, name + ".wlk");
-
+ public void write(String name, Map map, File wlk) {
try {
wlk.createNewFile();
WLKWriter.writeMap(map, new FileOutputStream(wlk));