Merge branch 'Moap' of git://github.com/Shyotl/SingularityViewer into VoiceUpdate
Conflicts:
indra/newview/llfloateravatarinfo.cpp - llpanelprofile.cpp update
indra/newview/llfloatergroupinfo.cpp - llgroupactions.cpp update
indra/newview/llfloaterobjectiminfo.cpp - simple merge
indra/newview/llstartup.cpp - Followed Shyotl's directions from 07165961dc
indra/newview/llviewermedia.cpp - includes conflict, simple stuff.
SLURL update:
indra/newview/llavataractions.cpp
indra/newview/llgroupactions.cpp
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
#include "llmodaldialog.h"
|
||||
#include "llpumpio.h"
|
||||
#include "llmimetypes.h"
|
||||
#include "llslurl.h"
|
||||
#include "llstartup.h"
|
||||
#include "llfocusmgr.h"
|
||||
#include "llviewerjoystick.h"
|
||||
@@ -80,6 +81,7 @@
|
||||
#include "llvector4a.h"
|
||||
#include "llvoicechannel.h"
|
||||
#include "llvoavatarself.h"
|
||||
#include "llurlmatch.h"
|
||||
#include "llprogressview.h"
|
||||
#include "llvocache.h"
|
||||
#include "llvopartgroup.h"
|
||||
@@ -94,6 +96,8 @@
|
||||
#include "llimagej2c.h"
|
||||
#include "llmemory.h"
|
||||
#include "llprimitive.h"
|
||||
#include "llurlaction.h"
|
||||
#include "llurlentry.h"
|
||||
#include "llnotifications.h"
|
||||
#include "llnotificationsutil.h"
|
||||
#include <boost/bind.hpp>
|
||||
@@ -149,7 +153,6 @@
|
||||
#include "llworld.h"
|
||||
#include "llhudeffecttrail.h"
|
||||
#include "llvectorperfoptions.h"
|
||||
#include "llurlsimstring.h"
|
||||
#include "llwatchdog.h"
|
||||
|
||||
// Included so that constants/settings might be initialized
|
||||
@@ -755,9 +758,11 @@ bool LLAppViewer::init()
|
||||
|
||||
LLWeb::initClass(); // do this after LLUI
|
||||
|
||||
LLTextEditor::setURLCallbacks(&LLWeb::loadURL,
|
||||
&LLURLDispatcher::dispatchFromTextEditor,
|
||||
&LLURLDispatcher::dispatchFromTextEditor);
|
||||
// Provide the text fields with callbacks for opening Urls
|
||||
LLUrlAction::setOpenURLCallback(boost::bind(&LLWeb::loadURL, _1, LLStringUtil::null, LLStringUtil::null));
|
||||
LLUrlAction::setOpenURLInternalCallback(boost::bind(&LLWeb::loadURLInternal, _1, LLStringUtil::null, LLStringUtil::null));
|
||||
LLUrlAction::setOpenURLExternalCallback(boost::bind(&LLWeb::loadURLExternal, _1, true, LLStringUtil::null));
|
||||
LLUrlAction::setExecuteSLURLCallback(&LLURLDispatcher::dispatchFromTextEditor);
|
||||
|
||||
LLToolMgr::getInstance(); // Initialize tool manager if not already instantiated
|
||||
|
||||
@@ -975,6 +980,8 @@ bool LLAppViewer::init()
|
||||
LLEnvManagerNew::instance().usePrefs();
|
||||
|
||||
gGLActive = FALSE;
|
||||
LLViewerMedia::initClass();
|
||||
LL_INFOS("InitInfo") << "Viewer media initialized." << LL_ENDL ;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1701,8 +1708,7 @@ bool LLAppViewer::cleanup()
|
||||
if (mPurgeOnExit)
|
||||
{
|
||||
llinfos << "Purging all cache files on exit" << llendflush;
|
||||
std::string mask = gDirUtilp->getDirDelimiter() + "*.*";
|
||||
gDirUtilp->deleteFilesInDir(gDirUtilp->getExpandedFilename(LL_PATH_CACHE,""),mask);
|
||||
gDirUtilp->deleteFilesInDir(gDirUtilp->getExpandedFilename(LL_PATH_CACHE,""),"*.*");
|
||||
}
|
||||
|
||||
removeMarkerFile(); // Any crashes from here on we'll just have to ignore
|
||||
@@ -1779,7 +1785,6 @@ bool LLAppViewer::cleanup()
|
||||
//Note:
|
||||
//LLViewerMedia::cleanupClass() has to be put before gTextureList.shutdown()
|
||||
//because some new image might be generated during cleaning up media. --bao
|
||||
LLViewerMediaFocus::cleanupClass();
|
||||
LLViewerMedia::cleanupClass();
|
||||
LLViewerParcelMedia::cleanupClass();
|
||||
gTextureList.shutdown(); // shutdown again in case a callback added something
|
||||
@@ -2329,30 +2334,17 @@ bool LLAppViewer::initConfiguration()
|
||||
// injection and steal passwords. Phoenix. SL-55321
|
||||
if(clp.hasOption("url"))
|
||||
{
|
||||
std::string slurl = clp.getOption("url")[0];
|
||||
if (LLURLDispatcher::isSLURLCommand(slurl))
|
||||
{
|
||||
LLStartUp::sSLURLCommand = slurl;
|
||||
}
|
||||
else
|
||||
{
|
||||
LLURLSimString::setString(slurl);
|
||||
}
|
||||
LLStartUp::setStartSLURL(LLSLURL(clp.getOption("url")[0]));
|
||||
if(LLStartUp::getStartSLURL().getType() == LLSLURL::LOCATION)
|
||||
{
|
||||
gHippoGridManager->setCurrentGrid(LLStartUp::getStartSLURL().getGrid());
|
||||
|
||||
}
|
||||
}
|
||||
else if(clp.hasOption("slurl"))
|
||||
{
|
||||
std::string slurl = clp.getOption("slurl")[0];
|
||||
if(LLURLDispatcher::isSLURL(slurl))
|
||||
{
|
||||
if (LLURLDispatcher::isSLURLCommand(slurl))
|
||||
{
|
||||
LLStartUp::sSLURLCommand = slurl;
|
||||
}
|
||||
else
|
||||
{
|
||||
LLURLSimString::setString(slurl);
|
||||
}
|
||||
}
|
||||
LLSLURL start_slurl(clp.getOption("slurl")[0]);
|
||||
LLStartUp::setStartSLURL(start_slurl);
|
||||
}
|
||||
|
||||
const LLControlVariable* skinfolder = gSavedSettings.getControl("SkinCurrent");
|
||||
@@ -2431,18 +2423,11 @@ bool LLAppViewer::initConfiguration()
|
||||
// don't call anotherInstanceRunning() when doing URL handoff, as
|
||||
// it relies on checking a marker file which will not work when running
|
||||
// out of different directories
|
||||
std::string slurl;
|
||||
if (!LLStartUp::sSLURLCommand.empty())
|
||||
|
||||
if (LLStartUp::getStartSLURL().isValid() &&
|
||||
(gSavedSettings.getBOOL("SLURLPassToOtherInstance")))
|
||||
{
|
||||
slurl = LLStartUp::sSLURLCommand;
|
||||
}
|
||||
else if (LLURLSimString::parse())
|
||||
{
|
||||
slurl = LLURLSimString::getURL();
|
||||
}
|
||||
if (!slurl.empty())
|
||||
{
|
||||
if (sendURLToOtherInstance(slurl))
|
||||
if (sendURLToOtherInstance(LLStartUp::getStartSLURL().getSLURLString()))
|
||||
{
|
||||
// successfully handed off URL to existing instance, exit
|
||||
return false;
|
||||
@@ -2498,9 +2483,10 @@ bool LLAppViewer::initConfiguration()
|
||||
|
||||
// need to do this here - need to have initialized global settings first
|
||||
std::string nextLoginLocation = gSavedSettings.getString( "NextLoginLocation" );
|
||||
if ( nextLoginLocation.length() )
|
||||
if ( !nextLoginLocation.empty() )
|
||||
{
|
||||
LLURLSimString::setString( nextLoginLocation );
|
||||
LL_DEBUGS("AppInit")<<"set start from NextLoginLocation: "<<nextLoginLocation<<LL_ENDL;
|
||||
LLStartUp::setStartSLURL(LLSLURL(nextLoginLocation));
|
||||
}
|
||||
|
||||
gLastRunVersion = gSavedSettings.getString("LastRunVersion");
|
||||
@@ -2684,8 +2670,7 @@ void LLAppViewer::cleanupSavedSettings()
|
||||
|
||||
void LLAppViewer::removeCacheFiles(const std::string& file_mask)
|
||||
{
|
||||
std::string mask = gDirUtilp->getDirDelimiter() + file_mask;
|
||||
gDirUtilp->deleteFilesInDir(gDirUtilp->getExpandedFilename(LL_PATH_CACHE, ""), mask);
|
||||
gDirUtilp->deleteFilesInDir(gDirUtilp->getExpandedFilename(LL_PATH_CACHE, ""), file_mask);
|
||||
}
|
||||
|
||||
void LLAppViewer::writeSystemInfo()
|
||||
|
||||
Reference in New Issue
Block a user