Confirm to new OpenSimExtras specification of SimulatorFeatures cap

See: http://opensimulator.org/wiki/SimulatorFeatures_Extras
* Moved SupportsExport inside this map to avoid possible
  collision with Linden Lab
* Added the ability for a sim to specify map server
  (Fixes maps after hypergrid jumps)
This commit is contained in:
Latif Khalifa
2013-07-31 04:24:13 +02:00
parent 8cb7c2cb2f
commit b4bc9727f1
4 changed files with 15 additions and 3 deletions

View File

@@ -54,7 +54,11 @@ void LFSimFeatureHandler::setSupportedFeatures()
region->getSimulatorFeatures(info);
//if (!gHippoGridManager->getCurrentGrid()->isSecondLife()) // Non-SL specific sim features
{
mSupportsExport = info.has("ExportSupported");
// For definition of OpenSimExtras please see
// http://opensimulator.org/wiki/SimulatorFeatures_Extras
mSupportsExport = info["OpenSimExtras"]["ExportSupported"].asBoolean();
mMapServerURL = info["OpenSimExtras"]["map-server-url"].asString();
mSearchURL = info["OpenSimExtras"]["search-server-url"].asString();
}
}
}