Renamed save dir to .rogue

master
Ondřej Hruška 11 years ago
parent f48797feb5
commit 4bc4af553e
  1. 2
      src/mightypork/gamecore/core/modules/BaseApp.java
  2. 6
      src/mightypork/rogue/Launcher.java
  3. 16
      src/mightypork/rogue/RogueApp.java

@ -166,7 +166,7 @@ public abstract class BaseApp implements AppAccess, UncaughtExceptionHandler {
* *
* @return opt holder * @return opt holder
*/ */
public AppInitOptions opt() public AppInitOptions getInitOptions()
{ {
if (started) { if (started) {
throw new IllegalStateException("Cannot alter init options after starting the App."); throw new IllegalStateException("Cannot alter init options after starting the App.");

@ -65,7 +65,7 @@ public class Launcher {
} }
if (!localWorkdir) { if (!localWorkdir) {
workdir = OsUtils.getHomeWorkDir(".rogue-save"); workdir = OsUtils.getHomeWorkDir(".rogue");
} else { } else {
workdir = new File(lwdDir); workdir = new File(lwdDir);
} }
@ -79,8 +79,8 @@ public class Launcher {
final BaseApp app = new RogueApp(workdir, true); final BaseApp app = new RogueApp(workdir, true);
app.opt().setLogLevel(llFile, llSyso); app.getInitOptions().setLogLevel(llFile, llSyso);
app.opt().setBusLogging(logBus); app.getInitOptions().setBusLogging(logBus);
app.start(); app.start();
} }

@ -45,14 +45,16 @@ public final class RogueApp extends BaseApp implements ViewportChangeListener, S
{ {
super(workdir, singleInstance); super(workdir, singleInstance);
opt().addRoutes(new RogueRoutes()); AppInitOptions opt = getInitOptions();
opt().addResources(new RogueResources());
opt().addKeys(new RogueKeys());
opt().addConfig(new RogueConfig());
opt().setBusLogging(true);
opt().setConfigFile("config.ini", "Rogue config file"); opt.addRoutes(new RogueRoutes());
opt().setLogOptions("logs", "runtime", 5, java.util.logging.Level.ALL); 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);
} }

Loading…
Cancel
Save