diff --git a/.gitignore b/.gitignore index 23984b2..976f160 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /bin/ /target/ +/.rogue-save/ *.log .attach_pid* \ No newline at end of file diff --git a/amap.ion b/amap.ion deleted file mode 100644 index 6ef2c2d..0000000 Binary files a/amap.ion and /dev/null differ diff --git a/src/mightypork/rogue/Paths.java b/src/mightypork/rogue/Paths.java index 605b5e0..c63c3b5 100644 --- a/src/mightypork/rogue/Paths.java +++ b/src/mightypork/rogue/Paths.java @@ -3,14 +3,10 @@ package mightypork.rogue; import java.io.File; -import mightypork.util.files.OsUtils; - public final class Paths { - private static final String APPDIR_NAME = "rogue"; - - public static final File WORKDIR = OsUtils.getWorkDir(APPDIR_NAME); + public static final File WORKDIR = new File("./.rogue-save");//OsUtils.getWorkDir(APPDIR_NAME); public static final File LOG_FILE = new File(WORKDIR, "runtime.log"); diff --git a/src/mightypork/rogue/screens/ingame/WorldLayer.java b/src/mightypork/rogue/screens/ingame/WorldLayer.java index 2edaf54..58dfb48 100644 --- a/src/mightypork/rogue/screens/ingame/WorldLayer.java +++ b/src/mightypork/rogue/screens/ingame/WorldLayer.java @@ -1,6 +1,7 @@ package mightypork.rogue.screens.ingame; +import java.io.File; import java.io.IOException; import java.util.Random; @@ -9,6 +10,7 @@ import mightypork.gamecore.gui.screens.ScreenLayer; import mightypork.gamecore.input.InputSystem; import mightypork.gamecore.input.KeyStroke; import mightypork.gamecore.input.Keys; +import mightypork.rogue.Paths; import mightypork.rogue.world.MapGenerator; import mightypork.rogue.world.World; import mightypork.util.ion.Ion; @@ -26,7 +28,7 @@ public class WorldLayer extends ScreenLayer { final World w = MapGenerator.createWorld(rand.nextLong()); try { - Ion.toFile("amap.ion", w); + Ion.toFile(new File(Paths.WORKDIR,"test-world.ion"), w); } catch (final IOException e) { e.printStackTrace(); System.exit(1);