mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
Update to new generic DataPluginFactory calls.
This commit is contained in:
@@ -272,7 +272,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim
|
||||
|
||||
try
|
||||
{
|
||||
m_assetProvider = DataPluginFactory.LoadAssetDataPlugin("OpenSim.Data.MySQL.dll", server.ConfigFile.Configs["MySQL"].GetString("database_connect", null));
|
||||
m_assetProvider = DataPluginFactory.LoadDataPlugin<IAssetDataPlugin>("OpenSim.Data.MySQL.dll", server.ConfigFile.Configs["MySQL"].GetString("database_connect", null));
|
||||
if (m_assetProvider == null)
|
||||
{
|
||||
Logger.Log.Error("[ASSET]: Failed to load a database plugin, server halting.");
|
||||
|
||||
@@ -789,7 +789,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim
|
||||
|
||||
try
|
||||
{
|
||||
m_inventoryProvider = DataPluginFactory.LoadInventoryDataPlugin("OpenSim.Data.MySQL.dll", server.ConfigFile.Configs["MySQL"].GetString("database_connect", null));
|
||||
m_inventoryProvider = DataPluginFactory.LoadDataPlugin<IInventoryDataPlugin>("OpenSim.Data.MySQL.dll", server.ConfigFile.Configs["MySQL"].GetString("database_connect", null));
|
||||
if (m_inventoryProvider == null)
|
||||
{
|
||||
Logger.Log.Error("[INVENTORY]: Failed to load a database plugin, server halting.");
|
||||
|
||||
Reference in New Issue
Block a user