From 4bc4af553e2efebe27fde9fc7e386c2f86e24409 Mon Sep 17 00:00:00 2001 From: MightyPork Date: Mon, 21 Jul 2014 08:55:31 +0200 Subject: [PATCH] Renamed save dir to .rogue --- .../gamecore/core/modules/BaseApp.java | 2 +- src/mightypork/rogue/Launcher.java | 6 +++--- src/mightypork/rogue/RogueApp.java | 16 +++++++++------- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/mightypork/gamecore/core/modules/BaseApp.java b/src/mightypork/gamecore/core/modules/BaseApp.java index 2cf1a4c..97cc7ae 100644 --- a/src/mightypork/gamecore/core/modules/BaseApp.java +++ b/src/mightypork/gamecore/core/modules/BaseApp.java @@ -166,7 +166,7 @@ public abstract class BaseApp implements AppAccess, UncaughtExceptionHandler { * * @return opt holder */ - public AppInitOptions opt() + public AppInitOptions getInitOptions() { if (started) { throw new IllegalStateException("Cannot alter init options after starting the App."); diff --git a/src/mightypork/rogue/Launcher.java b/src/mightypork/rogue/Launcher.java index 46f7dd8..c0ec058 100644 --- a/src/mightypork/rogue/Launcher.java +++ b/src/mightypork/rogue/Launcher.java @@ -65,7 +65,7 @@ public class Launcher { } if (!localWorkdir) { - workdir = OsUtils.getHomeWorkDir(".rogue-save"); + workdir = OsUtils.getHomeWorkDir(".rogue"); } else { workdir = new File(lwdDir); } @@ -79,8 +79,8 @@ public class Launcher { final BaseApp app = new RogueApp(workdir, true); - app.opt().setLogLevel(llFile, llSyso); - app.opt().setBusLogging(logBus); + app.getInitOptions().setLogLevel(llFile, llSyso); + app.getInitOptions().setBusLogging(logBus); app.start(); } diff --git a/src/mightypork/rogue/RogueApp.java b/src/mightypork/rogue/RogueApp.java index 0165fcd..49c89d3 100644 --- a/src/mightypork/rogue/RogueApp.java +++ b/src/mightypork/rogue/RogueApp.java @@ -45,14 +45,16 @@ public final class RogueApp extends BaseApp implements ViewportChangeListener, S { super(workdir, singleInstance); - opt().addRoutes(new RogueRoutes()); - opt().addResources(new RogueResources()); - opt().addKeys(new RogueKeys()); - opt().addConfig(new RogueConfig()); - opt().setBusLogging(true); + AppInitOptions opt = getInitOptions(); - opt().setConfigFile("config.ini", "Rogue config file"); - opt().setLogOptions("logs", "runtime", 5, java.util.logging.Level.ALL); + opt.addRoutes(new RogueRoutes()); + opt.addResources(new RogueResources()); + opt.addKeys(new RogueKeys()); + opt.addConfig(new RogueConfig()); + opt.setBusLogging(true); + + opt.setConfigFile("config.ini", "Rogue config file"); + opt.setLogOptions("logs", "runtime", 5, java.util.logging.Level.ALL); }