Renamed save dir to .rogue
This commit is contained in:
@@ -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);
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user