Add LLWebProfile and responders.
Adds finding and using libjsoncpp. Note that the old cmake file found libjson, not the same thing. Adds Debug Setting WebProfileNonProductionURL (next to already existing WebProfileURL) to mimic V3's behavior and use a different URL for aditi. These Debug Settings are using by (the new) getProfileURL() (copied from V3 with just a minor fix). Adds HippoGridInfo::isInProductionGrid() next to the existing LLViewerLogin::isInProductionGrid that always returned true. The former should only be called SL grids and then only returns true for agni (and false for aditi et al). The latter was changed to now always return true except on SL when the grid isn't agni. The first is used for SL-only cases, the latter for things like colors and for godmode decision logic. V3's llwebprofile.cpp was fixed to compile on singu, with only real difference that I dropped the Content-Type headers for the GET methods.
This commit is contained in:
@@ -77,6 +77,7 @@ bool LLViewerLogin::isSecondLife()
|
||||
|
||||
bool LLViewerLogin::isInProductionGrid()
|
||||
{
|
||||
return true;
|
||||
// Return true (as before) on opensim grids, but return the real thing (agni or not) on SL.
|
||||
return !gHippoGridManager->getConnectedGrid()->isSecondLife() || gHippoGridManager->getConnectedGrid()->isInProductionGrid();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user