mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Asset server implementation. Again one of these "plumbing" releases, where no real functionality has been introduced, but ground work has been made, enabling the asset server, and preparing the sim server to query the asset server.
Introduced an "IPlugin" interface, which plugins can inherit from.
This commit is contained in:
@@ -53,7 +53,7 @@ namespace OpenSim.Framework.Data.SQLite
|
||||
private const string assetSelect = "select * from assets";
|
||||
private DataSet ds;
|
||||
private SqliteDataAdapter da;
|
||||
|
||||
|
||||
public void Initialise(string dbfile, string dbname)
|
||||
{
|
||||
SqliteConnection conn = new SqliteConnection("URI=file:" + dbfile + ",version=3");
|
||||
@@ -275,5 +275,26 @@ namespace OpenSim.Framework.Data.SQLite
|
||||
return true;
|
||||
}
|
||||
|
||||
#region IPlugin interface
|
||||
public string Version {
|
||||
get
|
||||
{
|
||||
System.Reflection.Module module = this.GetType().Module;
|
||||
string dllName = module.Assembly.ManifestModule.Name;
|
||||
Version dllVersion = module.Assembly.GetName().Version;
|
||||
|
||||
return string.Format("{0}.{1}.{2}.{3}", dllVersion.Major, dllVersion.Minor, dllVersion.Build, dllVersion.Revision);
|
||||
}
|
||||
}
|
||||
|
||||
public void Initialise()
|
||||
{
|
||||
Initialise("AssetStorage.db", "");
|
||||
}
|
||||
|
||||
public string Name {
|
||||
get { return "SQLite Asset storage engine"; }
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user