From b3cef2fc2a02510c550843fe080ff2d77d2fb743 Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 21 Jul 2007 15:50:29 +0000 Subject: Re-added the ability to set the database provider (dll) in the config file for the userserver and gridserver. --- OpenSim/Framework/General/Configuration/UserConfig.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'OpenSim/Framework/General/Configuration/UserConfig.cs') diff --git a/OpenSim/Framework/General/Configuration/UserConfig.cs b/OpenSim/Framework/General/Configuration/UserConfig.cs index a027ffc..2183491 100644 --- a/OpenSim/Framework/General/Configuration/UserConfig.cs +++ b/OpenSim/Framework/General/Configuration/UserConfig.cs @@ -14,6 +14,8 @@ namespace OpenSim.Framework.Configuration public string GridSendKey = ""; public string GridRecvKey = ""; + public string DatabaseProvider = ""; + private ConfigurationMember configMember; public UserConfig(string description, string filename) @@ -29,7 +31,7 @@ namespace OpenSim.Framework.Configuration configMember.addConfigurationOption("default_grid_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Grid Server URI", "http://127.0.0.1:8001/", false); configMember.addConfigurationOption("grid_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to grid server", "null", false); configMember.addConfigurationOption("grid_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from grid server", "null", false); - + configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "DLL for database provider", "OpenSim.Framework.Data.MySQL.dll", false); } @@ -49,6 +51,9 @@ namespace OpenSim.Framework.Configuration case "grid_recv_key": this.GridRecvKey = (string)configuration_result; break; + case "database_provider": + this.DatabaseProvider = (string)configuration_result; + break; } return true; -- cgit v1.1