mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Re-added the ability to set the database provider (dll) in the config file for the userserver and gridserver.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user