Consistent naming for config reader variables.

This commit is contained in:
MobiusDevelopment
2021-11-08 22:05:49 +00:00
parent fcc9de1b6d
commit 830fbb1b61
78 changed files with 26623 additions and 26643 deletions

File diff suppressed because it is too large Load Diff

View File

@ -184,11 +184,11 @@ public class GameServer
final long serverLoadStart = Chronos.currentTimeMillis();
// GUI
final PropertiesParser interfaceSettings = new PropertiesParser(Config.INTERFACE_CONFIG_FILE);
Config.ENABLE_GUI = interfaceSettings.getBoolean("EnableGUI", true);
final PropertiesParser interfaceConfig = new PropertiesParser(Config.INTERFACE_CONFIG_FILE);
Config.ENABLE_GUI = interfaceConfig.getBoolean("EnableGUI", true);
if (Config.ENABLE_GUI && !GraphicsEnvironment.isHeadless())
{
Config.DARK_THEME = interfaceSettings.getBoolean("DarkTheme", true);
Config.DARK_THEME = interfaceConfig.getBoolean("DarkTheme", true);
System.out.println("GameServer: Running in GUI mode.");
new Gui();
}

View File

@ -64,11 +64,11 @@ public class LoginServer
private LoginServer() throws Exception
{
// GUI
final PropertiesParser interfaceSettings = new PropertiesParser(Config.INTERFACE_CONFIG_FILE);
Config.ENABLE_GUI = interfaceSettings.getBoolean("EnableGUI", true);
final PropertiesParser interfaceConfig = new PropertiesParser(Config.INTERFACE_CONFIG_FILE);
Config.ENABLE_GUI = interfaceConfig.getBoolean("EnableGUI", true);
if (Config.ENABLE_GUI && !GraphicsEnvironment.isHeadless())
{
Config.DARK_THEME = interfaceSettings.getBoolean("DarkTheme", true);
Config.DARK_THEME = interfaceConfig.getBoolean("DarkTheme", true);
System.out.println("LoginServer: Running in GUI mode.");
new Gui();
}