Re-added the ability to set the database provider (dll) in the config file for the userserver and gridserver.

This commit is contained in:
MW
2007-07-21 15:50:29 +00:00
parent 2c90c61020
commit b3cef2fc2a
4 changed files with 14 additions and 4 deletions

View File

@@ -17,6 +17,8 @@ namespace OpenSim.Framework.Configuration
public string SimSendKey = "";
public string SimRecvKey = "";
public string DatabaseProvider = "";
private ConfigurationMember configMember;
public GridConfig(string description, string filename)
@@ -38,7 +40,7 @@ namespace OpenSim.Framework.Configuration
configMember.addConfigurationOption("sim_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to a simulator", "null", false);
configMember.addConfigurationOption("sim_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from a simulator", "null", false);
configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "DLL for database provider", "OpenSim.Framework.Data.MySQL.dll", false);
}
public bool handleIncomingConfiguration(string configuration_key, object configuration_result)
@@ -72,6 +74,9 @@ namespace OpenSim.Framework.Configuration
case "sim_recv_key":
this.SimRecvKey = (string)configuration_result;
break;
case "database_provider":
this.DatabaseProvider = (string)configuration_result;
break;
}
return true;