/// <summary>Gets the configuration settings.</summary> private void GetConfigSettings() { UserAccountIsPlayerCharacter = GameConfiguration.GetAppConfigBool("UserAccountIsPlayerCharacter"); PlayerCharacterNamesMustUseSingleCapital = GameConfiguration.GetAppConfigBool("PlayerCharacterNamesMustUseSingleCapital"); var relationalSettings = GetConnectionStringSettings("RelationalDataProviderName", "WheelMUDSQLite"); var documentSettings = GetConnectionStringSettings("DocumentDataProviderName", "RavenDB"); RelationalDataProviderName = relationalSettings.Name; RelationalConnectionString = relationalSettings.ConnectionString; DocumentDataProviderName = documentSettings.Name; DocumentConnectionString = documentSettings.ConnectionString; // Replace any tokens like {DataDir} in the connection strings with evaluated values. // This prevents new administrators from having to adjust App.config for user-specific paths. var dataDir = GameConfiguration.DataStoragePath + Path.DirectorySeparatorChar; RelationalConnectionString = RelationalConnectionString.Replace("{DataDir}", dataDir); DocumentConnectionString = DocumentConnectionString.Replace("{DataDir}", dataDir); }