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. 18
      src/mightypork/rogue/RogueApp.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.");

@ -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();
}

@ -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);
opt().setConfigFile("config.ini", "Rogue config file");
opt().setLogOptions("logs", "runtime", 5, java.util.logging.Level.ALL);
AppInitOptions opt = getInitOptions();
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);
}

Loading…
Cancel
Save