ForgePreferences fully converted to enum architecture. All preference-style files are now standardized using enums.

This commit is contained in:
Doublestrike
2012-01-29 08:46:02 +00:00
parent d2bc6be32b
commit 795010336d
24 changed files with 284 additions and 599 deletions

View File

@@ -36,6 +36,7 @@ import forge.gui.input.InputControl;
import forge.properties.ForgePreferences;
import forge.properties.ForgeProps;
import forge.properties.NewConstants;
import forge.properties.ForgePreferences.FPref;
import forge.quest.data.QuestPreferences;
import forge.util.FileUtil;
import forge.util.HttpUtil;
@@ -86,7 +87,7 @@ public class FModel {
// Instantiate preferences
try {
this.preferences = new ForgePreferences("forge.preferences");
this.preferences = new ForgePreferences();
} catch (final Exception exn) {
throw new RuntimeException(exn);
}
@@ -99,7 +100,7 @@ public class FModel {
// Unfortunately, they're tied up in legacy code in the Display interface,
// currently in GuiTopLevel. When that code is updated, this TODO should be resolved.
// Doublestrike 24-01-12
Constant.Runtime.DEV_MODE[0] = preferences.isDeveloperMode();
Constant.Runtime.DEV_MODE[0] = preferences.getPrefBoolean(FPref.DEV_MODE_ENABLED);
// Instantiate AI
AllZone.setInputControl(new InputControl(FModel.this));