summaryrefslogtreecommitdiff
path: root/tools/tmwcon/src/converter/WLKInterface.java
diff options
context:
space:
mode:
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));