mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Move inventory contents configuration files to bin/inventory folder
This commit is contained in:
@@ -64,7 +64,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
|
||||
CreateLibraryItems();
|
||||
|
||||
string filePath = Path.Combine(Util.configDir(), "OpenSimLibrary.xml");
|
||||
string filePath = Path.Combine(Util.configDir(), "inventory/OpenSimLibrary.xml");
|
||||
if (File.Exists(filePath))
|
||||
{
|
||||
try
|
||||
@@ -74,7 +74,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
}
|
||||
catch (XmlException e)
|
||||
{
|
||||
MainLog.Instance.Error("INVENTORY", "Error loading " + filePath + ": " + e.ToString());
|
||||
MainLog.Instance.Error("AGENTINVENTORY", "Error loading " + filePath + ": " + e.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -165,4 +165,4 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,10 +149,10 @@ namespace OpenSim.Grid.InventoryServer
|
||||
{
|
||||
_manager = manager;
|
||||
|
||||
_inventory = loadInventoryFromXmlFile("Inventory_Library.xml");
|
||||
_inventory = loadInventoryFromXmlFile("inventory/Inventory_Library.xml");
|
||||
if (fixupInventory(_inventory))
|
||||
{
|
||||
FileStream fs = new FileStream("Inventory_Library.xml", FileMode.Truncate, FileAccess.Write);
|
||||
FileStream fs = new FileStream("inventory/Inventory_Library.xml", FileMode.Truncate, FileAccess.Write);
|
||||
saveInventoryToStream(_inventory, fs);
|
||||
fs.Flush();
|
||||
fs.Close();
|
||||
@@ -207,4 +207,4 @@ namespace OpenSim.Grid.InventoryServer
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user