Add config file support for network type selection

This commit is contained in:
Manfred Karrer 2014-09-29 01:44:50 +02:00
parent d2b1c5f37c
commit a5a04fe72c
6 changed files with 104 additions and 10 deletions

View file

@ -63,7 +63,9 @@ public class BitSquare extends Application {
public static void main(String[] args) {
Profiler.init();
Profiler.printMsgWithTime("BitSquare.main called with args " + Arrays.asList(args).toString());
if (args.length > 0) APP_NAME = APP_NAME + "_" + args[0];
if (args.length > 0)
APP_NAME = APP_NAME + "_" + args[0];
launch(args);
}
@ -107,7 +109,6 @@ public class BitSquare extends Application {
User persistedUser = (User) persistence.read(user);
user.applyPersistedUser(persistedUser);
//persistence.write(user);
settings.applyPersistedSettings((Settings) persistence.read(settings.getClass().getName()));