llstartup.cpp File Reference

startup routines. More...

#include "llviewerprecompiledheaders.h"
#include "llstartup.h"
#include <sys/stat.h>
#include "audioengine.h"
#include "audiosettings.h"
#include "llcachename.h"
#include "llviewercontrol.h"
#include "lldir.h"
#include "lleconomy.h"
#include "llerrorcontrol.h"
#include "llfiltersd2xmlrpc.h"
#include "llfocusmgr.h"
#include "llhttpsender.h"
#include "imageids.h"
#include "lllandmark.h"
#include "llloginflags.h"
#include "llmd5.h"
#include "llmemorystream.h"
#include "llmessageconfig.h"
#include "llregionhandle.h"
#include "llregionnamecache.h"
#include "llsd.h"
#include "llsdserialize.h"
#include "llsdutil.h"
#include "llsecondlifeurls.h"
#include "llstring.h"
#include "lluserrelations.h"
#include "llversionviewer.h"
#include "llvfs.h"
#include "llwindow.h"
#include "llxorcipher.h"
#include "message.h"
#include "v3math.h"
#include "llagent.h"
#include "llagentpilot.h"
#include "llasynchostbyname.h"
#include "llfloateravatarpicker.h"
#include "llcallbacklist.h"
#include "llcallingcard.h"
#include "llcolorscheme.h"
#include "llconsole.h"
#include "llcontainerview.h"
#include "lldebugview.h"
#include "lldrawable.h"
#include "lleventnotifier.h"
#include "llface.h"
#include "llfeaturemanager.h"
#include "llfirstuse.h"
#include "llfloateractivespeakers.h"
#include "llfloaterchat.h"
#include "llfloatergesture.h"
#include "llfloaterland.h"
#include "llfloatertopobjects.h"
#include "llfloatertos.h"
#include "llfloaterworldmap.h"
#include "llframestats.h"
#include "llframestatview.h"
#include "llgesturemgr.h"
#include "llgroupmgr.h"
#include "llhudeffecttrail.h"
#include "llhudmanager.h"
#include "llhttpclient.h"
#include "llimagebmp.h"
#include "llinventorymodel.h"
#include "llinventoryview.h"
#include "llkeyboard.h"
#include "llpanellogin.h"
#include "llmutelist.h"
#include "llnotify.h"
#include "llpanelavatar.h"
#include "llpaneldirbrowser.h"
#include "llpaneldirland.h"
#include "llpanelevent.h"
#include "llpanelclassified.h"
#include "llpanelpick.h"
#include "llpanelplace.h"
#include "llpanelgrouplandmoney.h"
#include "llpanelgroupnotices.h"
#include "llpreview.h"
#include "llpreviewscript.h"
#include "lltrustnet.h"
#include "llselectmgr.h"
#include "llsky.h"
#include "llsrv.h"
#include "llstatview.h"
#include "llsurface.h"
#include "lltexturecache.h"
#include "lltexturefetch.h"
#include "lltoolmgr.h"
#include "llui.h"
#include "llurldispatcher.h"
#include "llurlsimstring.h"
#include "llurlwhitelist.h"
#include "lluserauth.h"
#include "llviewerassetstorage.h"
#include "llviewercamera.h"
#include "llviewercommunication.h"
#include "llviewerdisplay.h"
#include "llviewergenericmessage.h"
#include "llviewergesture.h"
#include "llviewerimagelist.h"
#include "llviewermenu.h"
#include "llviewermessage.h"
#include "llviewernetwork.h"
#include "llviewerobjectlist.h"
#include "llviewerparcelmgr.h"
#include "llviewerregion.h"
#include "llviewerstats.h"
#include "llviewerthrottle.h"
#include "llviewerwindow.h"
#include "llvoavatar.h"
#include "llvoclouds.h"
#include "llworld.h"
#include "llworldmap.h"
#include "llxfermanager.h"
#include "pipeline.h"
#include "viewer.h"
#include "llmediaengine.h"
#include "llfasttimerview.h"
#include "llfloatermap.h"
#include "llweb.h"
#include "llvoiceclient.h"

Include dependency graph for llstartup.cpp:

Go to the source code of this file.

Classes

class  LLGestureInventoryFetchObserver
class  LLHTTPUpdateResponder

Functions

void login_show ()
void login_callback (S32 option, void *userdata)
LLString load_password_from_disk ()
void save_password_to_disk (const char *hashed_password)
BOOL is_hex_string (U8 *str, S32 len)
void show_first_run_dialog ()
void first_run_dialog_callback (S32 option, void *userdata)
void set_startup_status (const F32 frac, const char *string, const char *msg)
void login_alert_status (S32 option, void *user_data)
void update_app (BOOL mandatory, const std::string &message)
void update_dialog_callback (S32 option, void *userdata)
void update_check_failure_dialog_callback (S32 option, void *userdata)
void login_packet_failed (void **, S32 result)
void use_circuit_callback (void **, S32 result)
void register_viewer_callbacks (LLMessageSystem *msg)
void init_stat_view ()
void asset_callback_nothing (LLVFS *, const LLUUID &, LLAssetType::EType, void *, S32)
void dialog_choose_gender_first_start ()
void callback_choose_gender (S32 option, void *userdata)
void init_start_screen (S32 location_id)
void release_start_screen ()
void reset_login ()
void update_texture_fetch ()
BOOL idle_startup ()

Variables

LLUUID gSunTextureID = IMG_SUN
LLUUID gMoonTextureID = IMG_MOON
LLUUID gCloudTextureID = IMG_CLOUD_POOF
const char * SCREEN_HOME_FILENAME = "screen_home.bmp"
const char * SCREEN_LAST_FILENAME = "screen_last.bmp"
const LLString HTTP_UPDATE_URL = "http://sl.daleglass.net/viewer_update_check"
S32 gStartImageWidth
S32 gStartImageHeight
std::string gSerialNumber
LLPointer< LLImageGLgStartImageGL
static LLHost gAgentSimHost
static BOOL gSkipOptionalUpdate = FALSE
bool gUseQuickTime = true
bool gQuickTimeInitialized = false
static bool gGotUseCircuitCodeAck = false
LLString gInitialOutfit
LLString gInitialOutfitGender
static bool gUseCircuitCallbackCalled = false
const char * COMMON_GESTURES_FOLDER = "Common Gestures"
const char * MALE_GESTURES_FOLDER = "Male Gestures"
const char * FEMALE_GESTURES_FOLDER = "Female Gestures"
const char * MALE_OUTFIT_FOLDER = "Male Shape & Outfit"
const char * FEMALE_OUTFIT_FOLDER = "Female Shape & Outfit"
const S32 OPT_USE_INITIAL_OUTFIT = -2
const S32 OPT_CLOSED_WINDOW = -1
const S32 OPT_MALE = 0
const S32 OPT_FEMALE = 1


Detailed Description

startup routines.

LicenseInfo
firstyear=2004&license=viewergpl

Copyright (c) 2004-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llstartup.cpp.


Function Documentation

void asset_callback_nothing ( LLVFS ,
const LLUUID ,
LLAssetType::EType  ,
void ,
S32   
)

Definition at line 3575 of file llstartup.cpp.

void callback_choose_gender ( S32  option,
void userdata 
)

Definition at line 3591 of file llstartup.cpp.

References LLInventoryModel::collectDescendentsIf(), LLDynamicArray< Type, BlockSize >::count(), LLAgent::createStandardWearables(), LLInventoryModel::EXCLUDE_TRASH, gAgent, gInitialOutfit, gInitialOutfitGender, gInventory, LLUUID::null, S32, LLAgent::setGenderChosen(), TRUE, and wear_outfit_by_name().

Referenced by dialog_choose_gender_first_start().

void dialog_choose_gender_first_start (  ) 

Definition at line 3659 of file llstartup.cpp.

References LLViewerWindow::alertXml(), callback_choose_gender(), gAgent, gInitialOutfit, gNoRender, gViewerWindow, LLAgent::isGenderChosen(), and NULL.

Referenced by idle_startup().

void first_run_dialog_callback ( S32  option,
void userdata 
)

Definition at line 2631 of file llstartup.cpp.

References CREATE_ACCOUNT_URL, LLPanelLogin::giveFocus(), llinfos, and LLWeb::loadURL().

Referenced by show_first_run_dialog().

BOOL idle_startup (  ) 

Definition at line 346 of file llstartup.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_AgentMovementComplete, _PREHASH_AttachedSound, _PREHASH_AttachedSoundGainChange, _PREHASH_CircuitCode, _PREHASH_Code, _PREHASH_EconomyDataRequest, _PREHASH_ID, _PREHASH_MoneyBalanceRequest, _PREHASH_MoneyData, _PREHASH_PreloadSound, _PREHASH_SessionID, _PREHASH_SoundTrigger, _PREHASH_TransactionID, _PREHASH_UseCircuitCode, LLGestureManager::activateGestureWithAsset(), LLAvatarTracker::addBuddyList(), LLInventoryModel::addChangedMask(), LLCacheName::addObserver(), LLInventoryModel::addObserver(), LLWorld::addRegion(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), LLViewerWindow::alertXml(), LLInventoryObserver::ALL, app_early_exit(), app_force_quit(), audio_update_volume(), LLUserAuth::authenticate(), LLUserAuth::authResponse(), LLInventoryModel::buildParentChildMap(), LLAgent::calcCameraPositionTargetGlobal(), callback_cache_name(), LLCallbackList::callFunctions(), LLMessageSystem::checkAllMessages(), LLAgent::clearAFK(), LLPanelLogin::close(), codec, LLStringBase< char >::convertToF32(), LLHUDManager::createViewerEffect(), LLViewerImageList::decodeAllImages(), DEFAULT_SETTINGS_FILE, dialog_choose_gender_first_start(), LLURLDispatcher::dispatch(), LLStartUp::dispatchURL(), display_startup(), LLViewerImageList::doPrefetchImages(), LLUserAuth::E_COULDNT_RESOLVE_HOST, LLUserAuth::E_DOWNLOADING, LLUserAuth::E_NO_RESPONSE_YET, LLUserAuth::E_OK, LLUserAuth::E_SSL_CACERT, LLUserAuth::E_SSL_CONNECT_ERROR, LLUserAuth::E_SSL_PEER_CERTIFICATE, LLUserAuth::E_UNHANDLED_ERROR, LLMessageSystem::enableCircuit(), end, LLUserAuth::errorMessage(), f, FALSE, LLInventoryFetchObserver::fetchItems(), LLMD5::finalize(), LLFile::fopen(), from_region_handle(), gAcceptCriticalMessage, gAcceptTOS, gAgent, gAgentID, gAgentMovementCompleted, gAgentPilot, gAgentSessionID, gAssetStorage, gAudiop, gAutoLogin, gCacheName, gCamera, gChannelName, gCloudTextureID, gCmdLineFirstName, gCmdLineLastName, gCmdLinePassword, gDebugView, gDirUtilp, gDisabledMessage, gDisplaySwapBuffers, LLHTTPClient::get(), LLAgent::getAvatarObject(), LLControlGroup::getBOOL(), LLDir::getChatLogsDir(), LLControlGroup::getColor4(), LLDir::getDirDelimiter(), LLViewerWindow::getDisplayAspectRatio(), LLAgent::getEffectColor(), LLTimer::getElapsedTimeF32(), LLFrameTimer::getElapsedTimeF32(), LLMessageSystem::getErrorCode(), LLDir::getExecutableDir(), LLDir::getExpandedFilename(), LLControlGroup::getF32(), LLPanelLogin::getFields(), LLWindow::getFullscreen(), LLViewerRegion::getHost(), LLAgent::getID(), LLViewerWindow::getInitAlert(), LLMediaEngine::getInstance(), LLUserAuth::getLastTransferRateBPS(), LLDir::getLindenUserDir(), LLPanelLogin::getLocation(), getLoginURIs(), LLViewerThrottle::getMaxBandwidth(), LLUserAuth::getOptions(), LLViewerRegion::getOriginGlobal(), LLDir::getOSUserAppDir(), LLDir::getPerAccountChatLogsDir(), LLViewerWindow::getPlatformWindow(), LLAgent::getPositionGlobal(), LLAgent::getRegion(), LLWorld::getRegionFromHandle(), LLUserAuth::getResponse(), LLControlGroup::getS32(), LLPanelLogin::getServer(), LLAgent::getSessionID(), LLStartUp::getStartupState(), LLControlGroup::getString(), LLControlGroup::getU32(), LLControlGroup::getVector3d(), LLFeatureManager::getVersion(), LLAgent::getWearablesLoaded(), LLViewerWindow::getWindow(), LLViewerWindow::getWindowDisplayHeight(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gEventNotifier, gFeatureManagerp, gFloaterWorldMap, gFocusMgr, gForegroundTime, gFrameCount, gFrameIntervalSeconds, gFrameStats, gFrameTime, gFrameTimeSeconds, gGestureManager, gGlobalEconomy, gGodConnect, gGotUseCircuitCodeAck, gHideLinks, gHUDManager, gIdleCallbacks, gImageList, gInBandwidth, gInitializationComplete, gInitialOutfit, gInitialOutfitGender, gInventory, gInventoryLibraryOwner, gInventoryLibraryRoot, LLPanelLogin::giveFocus(), gKeyboard, gLastExecFroze, gLogMessages, gMACAddress, gMessageSystem, gMoonTextureID, gMuteListp, gNoRender, gOutBandwidth, gPacificDaylightTime, gPacketDropPercentage, gParcelMgr, gPerAccountSettingsFileName, gQuickTimeInitialized, gRegionNameCache, gRenderStartTime, gRequestInventoryLibrary, gSavedPerAccountSettings, gSavedSettings, gSecondLife, gSelectMgr, gSerialNumber, gServicePump, gSettingsFileName, gSkipOptionalUpdate, gSky, gStartTime, gSunTextureID, gToolMgr, gTrustNet, gUseAudio, gUseCircuitCallbackCalled, gUseQuickTime, gUserAuthp, gUserServerChoice, gUserServerName, gUTCOffset, gVFS, gViewerCommunication, gViewerDigest, gViewerStats, gViewerThrottle, gViewerWindow, gVoiceClient, gWorldMap, gWorldp, gXferManager, LLViewerWindow::handlePerFrameHover(), LLMD5::hex_digest(), HTTP_UPDATE_URL, i, LLViewerStats::incStat(), init(), LLAudioEngine::init(), LLAgent::init(), LLSky::init(), init_audio(), init_colors(), init_start_screen(), init_stat_view(), LLMessageConfig::initClass(), LLFace::initClass(), LLDrawable::initClass(), LLSurface::initClasses(), LLAgent::initOriginGlobal(), LLToolMgr::initTools(), LLViewerObject::initVOClasses(), LLViewerWindow::initWorldUI(), LLAvatarTracker::instance(), invalid_message_callback(), LLAgent::isFirstLogin(), LLAgent::isGenderChosen(), LLMessageSystem::isOK(), LLHost::isOk(), LLFeatureManager::isSafe(), kAUDIO_NUM_SOURCES, LLTimer::knownBadTimer(), list, LLHUDObject::LL_HUD_EFFECT_POINT, LL_PATH_APP_SETTINGS, LL_PATH_MOZILLA_PROFILE, LL_PATH_PER_SL_ACCOUNT, ll_vector3_from_sd(), LL_VERSION_BUILD, LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_VERSION_REVISION, llassert, lldebugs, llendl, llerrs, llformat(), llinfos, llwarns, LLAgentPilot::load(), LLViewerThrottle::load(), LLEventNotifier::load(), load_name_cache(), load_password_from_disk(), load_region_name_cache(), LLEventInfo::loadCategories(), LLClassifiedInfo::loadCategories(), LLControlGroup::loadFromFile(), LLInventoryModel::loadSkeleton(), LLWeb::loadURL(), LLUI::locateSkin(), login_alert_done(), login_show(), LLError::logToFixedBuffer(), MAC_ADDRESS_BYTES, MAX_STRING, MD5HEX_STR_SIZE, LLDebugView::mDebugConsolep, LLAgent::mDrawDistance, LLDebugView::mFastTimerView, LLAgent::mInventoryRootID, LLFile::mkdir(), LLAgent::mMOTD, LLMessageSystem::mOurCircuitCode, LLViewerWindow::moveProgressViewToFront(), ms_sleep(), LLAgent::mSecureSessionID, LLURLSimString::mSimName, LLDebugView::mStatViewp, LLMemType::MTYPE_STARTUP, LLAgent::mViewerPort, LLViewerWindow::mWindow, LLURLSimString::mX, MX_PACKET_TOO_SHORT, MX_UNREGISTERED_MESSAGE, MX_WROTE_PAST_BUFFER_SIZE, LLURLSimString::mY, LLURLSimString::mZ, NET_USE_OS_ASSIGNED_PORT, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLInventoryModel::notifyObservers(), LLUUID::notNull(), NULL, LLUUID::null, null_message_callback(), LLFloaterWorldMap::observeFriends(), LLAgent::observeFriends(), LLFloaterWorldMap::observeInventory(), LLURLSimString::parse(), LLSDNotationParser::parse(), LLXMLNode::parseFile(), LLVFS::pokeFiles(), process_agent_movement_complete(), process_attached_sound(), process_attached_sound_gain_change(), process_preload_sound(), process_sound_trigger(), LLMessageSystem::processAcks(), register_viewer_callbacks(), LLXferManager::registerCallbacks(), LLInventoryModel::registerCallbacks(), LLAvatarTracker::registerCallbacks(), LLLandmark::registerCallbacks(), LLStringBase< char >::replaceChar(), LLAgent::requestEnterGodMode(), LLMuteList::requestFromServer(), LLTimer::reset(), LLFrameTimer::reset(), reset_login(), LLAgent::resetAxes(), LLWindow::resetBusyCount(), LLAgent::resetCamera(), LLKeyboard::resetKeys(), LLViewerStats::resetStats(), resetURIs(), LLSRV::rewriteURI(), s, S32, LLPanelAvatar::sAllowFirstLife, save_password_to_disk(), LLControlGroup::saveToFile(), tut::sd(), SEC_TO_MICROSEC, send_complete_agent_movement(), LLAgent::sendAgentDataUpdateRequest(), LLHUDManager::sendEffects(), LLMessageSystem::sendReliable(), LLAgent::sendReliableMessage(), LLViewerWindow::sendShapeToSim(), LLUUID::set(), LLHost::set(), set_startup_status(), LLXferManager::setAckThrottleBPS(), LLCamera::setAspect(), LLMediaEngine::setAvailable(), LLControlGroup::setBOOL(), LLAgent::setCameraPosAndFocusGlobal(), LLDir::setChatLogsDir(), LLWindow::setCursor(), LLHTTPSender::setDefaultSender(), LLMessageSystem::setExceptionFunc(), LLPanelLogin::setFields(), LLFrameStats::setFilename(), LLAgent::setFirstLogin(), LLAgent::setFocusOnAvatar(), LLAgent::setGenderChosen(), LLMessageSystem::setHandlerFuncFast(), LLAgent::setHomePosRegion(), LLFocusMgr::setKeyboardFocus(), LLWorld::setLandFarClip(), LLDir::setLindenUserDir(), LLTextEditor::setLinkColor(), LLViewerThrottle::setMaxBandwidth(), LLXferManager::setMaxIncomingXfers(), LLMessageSystem::setMaxMessageTime(), LLAudioEngine::setMuted(), LLViewerWindow::setNormalControlsVisible(), LLDir::setPerAccountChatLogsDir(), LLAgent::setPositionAgent(), LLHUDObject::setPositionGlobal(), LLViewerWindow::setProgressCancelButtonVisible(), LLAgent::setRegion(), LLControlGroup::setS32(), LLViewerRegion::setSeedCapability(), LLViewerWindow::setShowProgress(), LLStartUp::setStartupState(), LLControlGroup::setString(), LLURLSimString::setString(), LLFrameStats::setSummaryFilename(), LLAgent::setTeen(), LLMessageSystem::setTimeDecodes(), LLMessageSystem::setTimeDecodesSpamThreshold(), LLControlGroup::setU32(), LLAssetStorage::setUpstream(), LLCacheName::setUpstream(), LLTextEditor::setURLCallbacks(), LLXferManager::setUseAckThrottling(), LLCamera::setViewHeightInPixels(), LLView::setVisible(), LLFloater::setVisible(), LLWindow::show(), LLFloaterTOS::show(), LLInventoryView::showAgentInventory(), LLViewerWindow::showCursor(), LLURLSimString::sInstance, LLViewerStats::ST_WEARABLES_TOO_LONG, start, START_LOCATION_ID_HOME, START_LOCATION_ID_LAST, START_LOCATION_ID_URL, start_messaging_system(), start_xfer_manager(), LLModalDialog::startModal(), LLAgentPilot::startPlayback(), STATE_AGENT_SEND, STATE_AGENT_WAIT, STATE_CLEANUP, STATE_FIRST, STATE_INVENTORY_SEND, STATE_LOGIN_AUTH_INIT, STATE_LOGIN_AUTHENTICATE, STATE_LOGIN_CLEANUP, STATE_LOGIN_DOWNLOADING, STATE_LOGIN_NO_DATA_YET, STATE_LOGIN_PROCESS_RESPONSE, STATE_LOGIN_SHOW, STATE_LOGIN_WAIT, STATE_MISC, STATE_PRECACHE, STATE_QUICKTIME_INIT, STATE_SEED_CAP_GRANTED, STATE_SEED_GRANTED_WAIT, STATE_STARTED, STATE_UPDATE_CHECK, STATE_WEARABLES_WAIT, STATE_WEB_UPDATE_START, STATE_WORLD_INIT, STATE_WORLD_WAIT, LLAgent::sTeleportErrorMessages, LLAgent::stopCameraAnimation(), time_corrected(), to_region_handle(), LLInventoryView::toggleVisibility(), LLFloaterTOS::TOS_CRITICAL_MESSAGE, LLFloaterTOS::TOS_TOS, totalTime(), LLStringBase< char >::trim(), TRUE, UI_CURSOR_ARROW, UI_CURSOR_WAIT, LLMD5::update(), update_app(), update_texture_fetch(), LLMortician::updateClass(), LLViewerImageList::updateImages(), use_circuit_callback(), LLVoiceClient::userAuthorized(), USERSERVER_OTHER, LLFirstUse::useVoice(), write_debug(), and xml_escape_string().

Referenced by idle().

void init_start_screen ( S32  location_id  ) 

Definition at line 3681 of file llstartup.cpp.

References FALSE, gDirUtilp, LLDir::getDirDelimiter(), LLDir::getLindenUserDir(), gStartImageGL, gStartImageHeight, gStartImageWidth, llinfos, LLPointer< Type >::notNull(), NULL, S32, SCREEN_HOME_FILENAME, SCREEN_LAST_FILENAME, and START_LOCATION_ID_LAST.

Referenced by idle_startup().

void init_stat_view (  ) 

Definition at line 3112 of file llstartup.cpp.

References LLView::addChildAtEnd(), LLStatView::addStat(), FALSE, gDebugView, LLView::getRect(), gFrameStats, gImageList, gObjectList, gPipeline, gViewerStats, LLViewerStats::mActualInKBitStat, LLViewerStats::mActualOutKBitStat, LLViewerStats::mAssetKBitStat, LLStatBar::mDisplayBar, LLStatBar::mDisplayHistory, LLStatBar::mDisplayMean, LLViewerStats::mFPSStat, LLDebugView::mFrameStatView, LLViewerStats::mKBitStat, LLStatBar::mLabelSpacing, LLViewerStats::mLayersKBitStat, LLStatBar::mMaxBar, LLStatBar::mMinBar, LLViewerObjectList::mNumNewObjectsStat, LLViewerObjectList::mNumObjectsStat, LLViewerStats::mObjectKBitStat, LLViewerStats::mPacketsInStat, LLViewerStats::mPacketsLostPercentStat, LLViewerStats::mPacketsOutStat, LLStatBar::mPerSec, LLStatBar::mPrecision, LLFrameStatView::mShowPercent, LLViewerStats::mSimActiveObjects, LLViewerStats::mSimActiveScripts, LLViewerStats::mSimAgentMsec, LLViewerStats::mSimAgentUPS, LLViewerStats::mSimChildAgents, LLViewerStats::mSimFPS, LLViewerStats::mSimFrameMsec, LLViewerStats::mSimImagesMsec, LLViewerStats::mSimInPPS, LLViewerStats::mSimLSLIPS, LLViewerStats::mSimMainAgents, LLViewerStats::mSimNetMsec, LLViewerStats::mSimObjects, LLViewerStats::mSimOutPPS, LLViewerStats::mSimPendingDownloads, LLViewerStats::mSimPendingUploads, LLViewerStats::mSimPhysicsFPS, LLViewerStats::mSimPingStat, LLViewerStats::mSimScriptMsec, LLViewerStats::mSimSimOtherMsec, LLViewerStats::mSimSimPhysicsMsec, LLViewerStats::mSimTimeDilation, LLViewerStats::mSimTotalUnackedBytes, LLDebugView::mStatViewp, LLViewerStats::mTextureKBitStat, LLStatBar::mTickSpacing, LLPipeline::mTrianglesDrawnStat, LLViewerStats::mVFSPendingOperations, NULL, r, LLContainerView::reshape(), LLStatBar::setLabel(), LLStatBar::setUnitLabel(), LLFrameStatView::setup(), LLViewerImageList::sFormattedMemStat, LLViewerImageList::sGLBoundMemStat, LLViewerImageList::sGLTexMemStat, LLViewerImageList::sNumImagesStat, LLViewerImageList::sNumRawImagesStat, LLViewerImageList::sRawMemStat, and TRUE.

Referenced by idle_startup().

BOOL is_hex_string ( U8 str,
S32  len 
)

Definition at line 2592 of file llstartup.cpp.

References c, FALSE, and TRUE.

Referenced by load_password_from_disk().

LLString load_password_from_disk (  ) 

Definition at line 2504 of file llstartup.cpp.

References LLXORCipher::decrypt(), LLFile::fopen(), gDirUtilp, LLDir::getExpandedFilename(), LLControlGroup::getString(), gMACAddress, gSavedSettings, is_hex_string(), LL_PATH_USER_SETTINGS, S32, and LLControlGroup::setString().

Referenced by idle_startup().

void login_alert_status ( S32  option,
void user_data 
)

Definition at line 2652 of file llstartup.cpp.

References gDirUtilp, LLDir::getExpandedFilename(), LLPanelLogin::giveFocus(), LL_PATH_HELP, and load_url_local_file().

Referenced by use_circuit_callback().

void login_callback ( S32  option,
void userdata 
)

Definition at line 2465 of file llstartup.cpp.

References LLPanelLogin::close(), FALSE, first, LLPanelLogin::getFields(), gQuit, gSavedSettings, gSettingsFileName, llwarns, NULL, S32, save_password_to_disk(), LLControlGroup::saveToFile(), LLControlGroup::setBOOL(), LLStartUp::setStartupState(), STATE_LOGIN_CLEANUP, and TRUE.

Referenced by login_show().

void login_packet_failed ( void **  ,
S32  result 
)

void login_show (  ) 

Definition at line 2423 of file llstartup.cpp.

References LLPanelLogin::addServer(), LLControlGroup::getBOOL(), LLViewerWindow::getVirtualWindowRect(), gSavedSettings, gUserServerChoice, gUserServerDomainName, gUserServerName, gViewerWindow, llinfos, login_callback(), NULL, LLPanelLogin::show(), TRUE, USERSERVER_ADITI, USERSERVER_AGNI, USERSERVER_DMZ, USERSERVER_DURGA, USERSERVER_GANGA, USERSERVER_LOCAL, USERSERVER_OTHER, USERSERVER_SHAKTI, USERSERVER_SIVA, USERSERVER_SOMA, USERSERVER_UMA, and USERSERVER_VAAK.

Referenced by idle_startup().

void register_viewer_callbacks ( LLMessageSystem msg  ) 

Definition at line 2911 of file llstartup.cpp.

References _PREHASH_AgentDataUpdate, _PREHASH_AgentGroupDataUpdate, _PREHASH_AgentWearablesUpdate, _PREHASH_AlertMessage, _PREHASH_AvatarAnimation, _PREHASH_AvatarAppearance, _PREHASH_AvatarSitResponse, _PREHASH_CameraConstraint, _PREHASH_ChatFromSimulator, _PREHASH_CoarseLocationUpdate, _PREHASH_CreateGroupReply, _PREHASH_DeRezAck, _PREHASH_DerezContainer, _PREHASH_DisableSimulator, _PREHASH_EconomyData, _PREHASH_EjectGroupMemberReply, _PREHASH_EnableSimulator, _PREHASH_FeatureDisabled, _PREHASH_GrantGodlikePowers, _PREHASH_GroupAccountDetailsReply, _PREHASH_GroupAccountSummaryReply, _PREHASH_GroupAccountTransactionsReply, _PREHASH_GroupMembersReply, _PREHASH_GroupProfileReply, _PREHASH_HealthMessage, _PREHASH_ImageData, _PREHASH_ImagePacket, _PREHASH_ImprovedInstantMessage, _PREHASH_ImprovedTerseObjectUpdate, _PREHASH_JoinGroupReply, _PREHASH_KickUser, _PREHASH_KillObject, _PREHASH_LayerData, _PREHASH_LeaveGroupReply, _PREHASH_MeanCollisionAlert, _PREHASH_MoneyBalanceReply, _PREHASH_NameValuePair, _PREHASH_ObjectProperties, _PREHASH_ObjectPropertiesFamily, _PREHASH_ObjectUpdate, _PREHASH_ParcelOverlay, _PREHASH_ParcelProperties, _PREHASH_RemoveNameValuePair, _PREHASH_ReplyTaskInventory, _PREHASH_ScriptQuestion, _PREHASH_ScriptRunningReply, _PREHASH_SimulatorViewerTimeMessage, _PREHASH_TeleportFinish, _PREHASH_UserInfoReply, _PREHASH_ViewerEffect, LLControlGroup::getBOOL(), gMessageSystem, gSavedSettings, LLFloaterTopObjects::handle_land_reply(), NULL, null_message_callback(), process_accept_callingcard(), process_agent_alert_message(), process_alert_message(), process_avatar_animation(), process_avatar_appearance(), process_avatar_sit_response(), process_cached_object_update(), process_camera_constraint(), process_chat_from_simulator(), process_clear_follow_cam_properties(), process_compressed_object_update(), process_covenant_reply(), process_crossed_region(), process_decline_callingcard(), process_derez_ack(), process_derez_container(), process_disable_simulator(), process_economy_data(), process_enable_simulator(), process_feature_disabled_message(), process_frozen_message(), process_generic_message(), process_grant_godlike_powers(), process_health_message(), process_improved_im(), process_initiate_download(), process_kick_user(), process_kill_object(), process_layer_data(), process_load_url(), process_logout_reply(), process_mean_collision_alert_message(), process_money_balance_reply(), process_name_value(), process_object_update(), process_offer_callingcard(), LLMediaEngine::process_parcel_media(), LLMediaEngine::process_parcel_media_update(), process_places_reply(), process_region_handshake(), process_remove_name_value(), process_script_dialog(), process_script_question(), process_script_teleport_request(), process_set_follow_cam_properties(), process_sim_stats(), process_teleport_failed(), process_teleport_finish(), process_teleport_local(), process_teleport_progress(), process_teleport_start(), process_terse_object_update_improved(), process_time_synch(), process_user_info_reply(), LLAgent::processAgentCachedTextureResponse(), LLAgent::processAgentDataUpdate(), LLAgent::processAgentDropGroup(), LLAgent::processAgentGroupDataUpdate(), LLAgent::processAgentInitialWearablesUpdate(), LLPanelAvatar::processAvatarClassifiedReply(), LLPanelAvatar::processAvatarGroupsReply(), LLPanelAvatar::processAvatarInterestsReply(), LLPanelAvatar::processAvatarNotesReply(), LLFloaterAvatarPicker::processAvatarPickerReply(), LLPanelAvatar::processAvatarPicksReply(), LLPanelAvatar::processAvatarPropertiesReply(), LLPanelClassified::processClassifiedInfoReply(), LLWorld::processCoarseUpdate(), LLGroupMgr::processCreateGroupReply(), LLPanelDirBrowser::processDirClassifiedReply(), LLPanelDirBrowser::processDirEventsReply(), LLPanelDirBrowser::processDirGroupsReply(), LLPanelDirBrowser::processDirLandReply(), LLPanelDirBrowser::processDirPeopleReply(), LLPanelDirBrowser::processDirPlacesReply(), LLPanelDirBrowser::processDirPopularReply(), LLGroupMgr::processEjectGroupMemberReply(), LLPanelEvent::processEventInfoReply(), LLSelectMgr::processForceObjectSelect(), LLPanelGroupLandMoney::processGroupAccountDetailsReply(), LLPanelGroupLandMoney::processGroupAccountSummaryReply(), LLPanelGroupLandMoney::processGroupAccountTransactionsReply(), LLGroupMgr::processGroupMembersReply(), LLPanelGroupNotices::processGroupNoticesListReply(), LLGroupMgr::processGroupPropertiesReply(), LLGroupMgr::processGroupRoleDataReply(), LLGroupMgr::processGroupRoleMembersReply(), LLGroupMgr::processGroupTitlesReply(), LLViewerImageList::processImageNotInDatabase(), LLGroupMgr::processJoinGroupReply(), LLGroupMgr::processLeaveGroupReply(), LLWorldMap::processMapBlockReply(), LLWorldMap::processMapItemReply(), LLWorldMap::processMapLayerReply(), LLSelectMgr::processObjectProperties(), LLSelectMgr::processObjectPropertiesFamily(), LLViewerParcelMgr::processParcelAccessListReply(), LLViewerParcelMgr::processParcelDwellReply(), LLPanelPlace::processParcelInfoReply(), LLPanelLandObjects::processParcelObjectOwnersReply(), LLViewerParcelMgr::processParcelOverlay(), LLViewerParcelMgr::processParcelProperties(), LLPanelPick::processPickInfoReply(), LLVOAvatar::processRebakeAvatarTextures(), LLViewerRegion::processRegionInfo(), LLAgent::processScriptControlChange(), LLLiveLSLEditor::processScriptRunningReply(), LLViewerObject::processTaskInv(), LLHUDManager::processViewerEffect(), LLViewerImageList::receiveImageHeader(), LLViewerImageList::receiveImagePacket(), LLMessageSystem::setHandlerFunc(), and LLMessageSystem::setHandlerFuncFast().

Referenced by idle_startup().

void release_start_screen (  ) 

Definition at line 3726 of file llstartup.cpp.

References gStartImageGL, and NULL.

Referenced by cleanup_app().

void reset_login (  ) 

Definition at line 3741 of file llstartup.cpp.

References FALSE, gFloaterMap, gViewerWindow, LLViewerWindow::setNormalControlsVisible(), LLStartUp::setStartupState(), LLFloaterMap::setVisible(), and STATE_LOGIN_SHOW.

Referenced by idle_startup(), and use_circuit_callback().

void save_password_to_disk ( const char *  hashed_password  ) 

Definition at line 2557 of file llstartup.cpp.

References LLStringBase< char >::copy(), LLXORCipher::encrypt(), LLFile::fopen(), gDirUtilp, LLDir::getExpandedFilename(), gMACAddress, LL_PATH_USER_SETTINGS, llwarns, LLFile::remove(), and S32.

Referenced by idle_startup(), and login_callback().

void set_startup_status ( const F32  frac,
const char *  string,
const char *  msg 
)

Definition at line 2644 of file llstartup.cpp.

References gViewerWindow, LLViewerWindow::setProgressMessage(), LLViewerWindow::setProgressPercent(), and LLViewerWindow::setProgressString().

Referenced by idle_startup().

void show_first_run_dialog (  ) 

Definition at line 2626 of file llstartup.cpp.

References LLViewerWindow::alertXml(), first_run_dialog_callback(), gViewerWindow, and NULL.

void update_app ( BOOL  mandatory,
const std::string &  message 
)

Definition at line 2669 of file llstartup.cpp.

References LLViewerWindow::alertXml(), gSavedSettings, gSettingsFileName, gViewerWindow, NULL, LLControlGroup::saveToFile(), TRUE, and update_dialog_callback().

Referenced by idle_startup(), and LLHTTPUpdateResponder::result().

void update_check_failure_dialog_callback ( S32  option,
void userdata 
)

Definition at line 2876 of file llstartup.cpp.

References app_force_quit(), llinfos, NULL, LLStartUp::setStartupState(), and STATE_LOGIN_AUTH_INIT.

Referenced by LLHTTPUpdateResponder::error().

void update_dialog_callback ( S32  option,
void userdata 
)

Definition at line 2731 of file llstartup.cpp.

References app_force_quit(), LLURI::asString(), LLURI::buildHTTP(), LLSD::emptyMap(), FALSE, gChannelName, gDirUtilp, LLDir::getAppRODataDir(), LLDir::getDirDelimiter(), LLDir::getTempFilename(), gHideLinks, gSavedSettings, gSecondLife, gUserServerName, llinfos, llwarns, LLURLSimString::mSimString, NULL, OSMB_OK, OSMessageBox(), params, remove_marker_file(), LLStartUp::setStartupState(), LLControlGroup::setString(), LLURLSimString::sInstance, and STATE_LOGIN_AUTH_INIT.

Referenced by update_app().

void update_texture_fetch (  ) 

Definition at line 336 of file llstartup.cpp.

References f, gImageDecodeThread, gImageList, gTextureCache, gTextureFetch, LLTextureFetch::update(), LLWorkerThread::update(), LLTextureCache::update(), and LLViewerImageList::updateImages().

Referenced by idle_startup().

void use_circuit_callback ( void **  ,
S32  result 
)

Definition at line 2889 of file llstartup.cpp.

References LLViewerWindow::alertXml(), gGotUseCircuitCodeAck, gQuit, gUseCircuitCallbackCalled, gViewerWindow, llinfos, login_alert_status(), NULL, and reset_login().

Referenced by idle_startup().


Variable Documentation

const char* COMMON_GESTURES_FOLDER = "Common Gestures"

Definition at line 3581 of file llstartup.cpp.

const char* FEMALE_GESTURES_FOLDER = "Female Gestures"

Definition at line 3583 of file llstartup.cpp.

const char* FEMALE_OUTFIT_FOLDER = "Female Shape & Outfit"

Definition at line 3585 of file llstartup.cpp.

LLHost gAgentSimHost [static]

Definition at line 217 of file llstartup.cpp.

LLUUID gCloudTextureID = IMG_CLOUD_POOF

Definition at line 198 of file llstartup.cpp.

Referenced by idle_startup(), and LLVOClouds::LLVOClouds().

bool gGotUseCircuitCodeAck = false [static]

Definition at line 222 of file llstartup.cpp.

Referenced by idle_startup(), and use_circuit_callback().

LLString gInitialOutfit

Definition at line 223 of file llstartup.cpp.

Referenced by callback_choose_gender(), dialog_choose_gender_first_start(), and idle_startup().

LLString gInitialOutfitGender

Definition at line 224 of file llstartup.cpp.

Referenced by callback_choose_gender(), and idle_startup().

LLUUID gMoonTextureID = IMG_MOON

Definition at line 197 of file llstartup.cpp.

Referenced by idle_startup(), LLDrawPoolWater::LLDrawPoolWater(), LLVOSky::LLVOSky(), and LLVOSky::restoreGL().

bool gQuickTimeInitialized = false

Definition at line 221 of file llstartup.cpp.

Referenced by cleanup_app(), and idle_startup().

std::string gSerialNumber

Definition at line 301 of file viewer.cpp.

Referenced by idle_startup(), and main().

BOOL gSkipOptionalUpdate = FALSE [static]

Definition at line 218 of file llstartup.cpp.

Referenced by idle_startup().

LLPointer<LLImageGL> gStartImageGL

Definition at line 215 of file llstartup.cpp.

Referenced by LLProgressView::draw(), init_start_screen(), release_start_screen(), and render_disconnected_background().

S32 gStartImageHeight

Definition at line 57 of file llprogressview.cpp.

Referenced by LLProgressView::draw(), and init_start_screen().

S32 gStartImageWidth

Definition at line 56 of file llprogressview.cpp.

Referenced by LLProgressView::draw(), and init_start_screen().

LLUUID gSunTextureID = IMG_SUN

Definition at line 196 of file llstartup.cpp.

Referenced by idle_startup(), LLDrawPoolWater::LLDrawPoolWater(), LLVOSky::LLVOSky(), and LLVOSky::restoreGL().

bool gUseCircuitCallbackCalled = false [static]

Definition at line 226 of file llstartup.cpp.

Referenced by idle_startup(), and use_circuit_callback().

bool gUseQuickTime = true

Definition at line 220 of file llstartup.cpp.

Referenced by idle_startup().

const LLString HTTP_UPDATE_URL = "http://sl.daleglass.net/viewer_update_check"

Definition at line 203 of file llstartup.cpp.

Referenced by idle_startup().

const char* MALE_GESTURES_FOLDER = "Male Gestures"

Definition at line 3582 of file llstartup.cpp.

const char* MALE_OUTFIT_FOLDER = "Male Shape & Outfit"

Definition at line 3584 of file llstartup.cpp.

const S32 OPT_CLOSED_WINDOW = -1

Definition at line 3587 of file llstartup.cpp.

const S32 OPT_FEMALE = 1

Definition at line 3589 of file llstartup.cpp.

const S32 OPT_MALE = 0

Definition at line 3588 of file llstartup.cpp.

const S32 OPT_USE_INITIAL_OUTFIT = -2

Definition at line 3586 of file llstartup.cpp.

const char* SCREEN_HOME_FILENAME = "screen_home.bmp"

Definition at line 200 of file llstartup.cpp.

Referenced by init_start_screen(), and process_alert_core().

const char* SCREEN_LAST_FILENAME = "screen_last.bmp"

Definition at line 201 of file llstartup.cpp.

Referenced by init_start_screen(), render_disconnected_background(), and save_final_snapshot().


Generated on Thu Jul 1 06:10:40 2010 for Second Life Viewer by  doxygen 1.4.7