diff options
Re-added the ability to set the database provider (dll) in the config file for the userserver and gridserver.
Diffstat (limited to 'OpenSim/Framework/General/Configuration/UserConfig.cs')
-rw-r--r-- | OpenSim/Framework/General/Configuration/UserConfig.cs | 7 |
1 files changed, 6 insertions, 1 deletions
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 | |||
14 | public string GridSendKey = ""; | 14 | public string GridSendKey = ""; |
15 | public string GridRecvKey = ""; | 15 | public string GridRecvKey = ""; |
16 | 16 | ||
17 | public string DatabaseProvider = ""; | ||
18 | |||
17 | private ConfigurationMember configMember; | 19 | private ConfigurationMember configMember; |
18 | 20 | ||
19 | public UserConfig(string description, string filename) | 21 | public UserConfig(string description, string filename) |
@@ -29,7 +31,7 @@ namespace OpenSim.Framework.Configuration | |||
29 | configMember.addConfigurationOption("default_grid_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Grid Server URI", "http://127.0.0.1:8001/", false); | 31 | configMember.addConfigurationOption("default_grid_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Grid Server URI", "http://127.0.0.1:8001/", false); |
30 | configMember.addConfigurationOption("grid_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to grid server", "null", false); | 32 | configMember.addConfigurationOption("grid_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to grid server", "null", false); |
31 | configMember.addConfigurationOption("grid_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from grid server", "null", false); | 33 | configMember.addConfigurationOption("grid_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from grid server", "null", false); |
32 | 34 | configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "DLL for database provider", "OpenSim.Framework.Data.MySQL.dll", false); | |
33 | 35 | ||
34 | } | 36 | } |
35 | 37 | ||
@@ -49,6 +51,9 @@ namespace OpenSim.Framework.Configuration | |||
49 | case "grid_recv_key": | 51 | case "grid_recv_key": |
50 | this.GridRecvKey = (string)configuration_result; | 52 | this.GridRecvKey = (string)configuration_result; |
51 | break; | 53 | break; |
54 | case "database_provider": | ||
55 | this.DatabaseProvider = (string)configuration_result; | ||
56 | break; | ||
52 | } | 57 | } |
53 | 58 | ||
54 | return true; | 59 | return true; |