diff options
author | Jacek Antonelli | 2008-08-15 23:45:16 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:16 -0500 |
commit | 3f27ba891ac4d032753b219b4b96d1ffbc9fb488 (patch) | |
tree | 504932ee91a0356fba7ea48798887c96867e492f /linden/indra/newview/llstartup.cpp | |
parent | Second Life viewer sources 1.18.4.3 (diff) | |
download | meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.zip meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.gz meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.bz2 meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.xz |
Second Life viewer sources 1.18.5.0-RC
Diffstat (limited to 'linden/indra/newview/llstartup.cpp')
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 62 |
1 files changed, 35 insertions, 27 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index a84590f..dad8046 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -817,7 +817,7 @@ BOOL idle_startup() | |||
817 | if (LLURLSimString::parse()) | 817 | if (LLURLSimString::parse()) |
818 | { | 818 | { |
819 | // a startup URL was specified | 819 | // a startup URL was specified |
820 | agent_location_id = START_LOCATION_ID_TELEHUB; | 820 | agent_location_id = START_LOCATION_ID_URL; |
821 | 821 | ||
822 | // doesn't really matter what location_which is, since | 822 | // doesn't really matter what location_which is, since |
823 | // agent_start_look_at will be overwritten when the | 823 | // agent_start_look_at will be overwritten when the |
@@ -1243,11 +1243,11 @@ BOOL idle_startup() | |||
1243 | text = gUserAuthp->getResponse("agent_access"); | 1243 | text = gUserAuthp->getResponse("agent_access"); |
1244 | if(text && (text[0] == 'M')) | 1244 | if(text && (text[0] == 'M')) |
1245 | { | 1245 | { |
1246 | gAgent.mAccess = SIM_ACCESS_MATURE; | 1246 | gAgent.setTeen(false); |
1247 | } | 1247 | } |
1248 | else | 1248 | else |
1249 | { | 1249 | { |
1250 | gAgent.mAccess = SIM_ACCESS_PG; | 1250 | gAgent.setTeen(true); |
1251 | } | 1251 | } |
1252 | 1252 | ||
1253 | text = gUserAuthp->getResponse("start_location"); | 1253 | text = gUserAuthp->getResponse("start_location"); |
@@ -1505,6 +1505,7 @@ BOOL idle_startup() | |||
1505 | 1505 | ||
1506 | LLStartUp::setStartupState( STATE_SEED_GRANTED_WAIT ); | 1506 | LLStartUp::setStartupState( STATE_SEED_GRANTED_WAIT ); |
1507 | regionp->setSeedCapability(first_sim_seed_cap); | 1507 | regionp->setSeedCapability(first_sim_seed_cap); |
1508 | llinfos << "Waiting for seed grant ...." << llendl; | ||
1508 | 1509 | ||
1509 | // Set agent's initial region to be the one we just created. | 1510 | // Set agent's initial region to be the one we just created. |
1510 | gAgent.setRegion(regionp); | 1511 | gAgent.setRegion(regionp); |
@@ -1523,7 +1524,6 @@ BOOL idle_startup() | |||
1523 | //--------------------------------------------------------------------- | 1524 | //--------------------------------------------------------------------- |
1524 | if(STATE_SEED_GRANTED_WAIT == LLStartUp::getStartupState()) | 1525 | if(STATE_SEED_GRANTED_WAIT == LLStartUp::getStartupState()) |
1525 | { | 1526 | { |
1526 | llinfos << "Waiting for seed grant ...." << llendl; | ||
1527 | return do_normal_idle; | 1527 | return do_normal_idle; |
1528 | } | 1528 | } |
1529 | 1529 | ||
@@ -1714,30 +1714,36 @@ BOOL idle_startup() | |||
1714 | } | 1714 | } |
1715 | 1715 | ||
1716 | #if LL_QUICKTIME_ENABLED // windows only right now but will be ported to mac | 1716 | #if LL_QUICKTIME_ENABLED // windows only right now but will be ported to mac |
1717 | if (gUseQuickTime | 1717 | if (gUseQuickTime) |
1718 | && !gQuickTimeInitialized) | ||
1719 | { | 1718 | { |
1720 | // initialize quicktime libraries (fails gracefully if quicktime not installed ($QUICKTIME) | 1719 | if(!gQuickTimeInitialized) |
1721 | llinfos << "Initializing QuickTime...." << llendl; | 1720 | { |
1722 | set_startup_status(0.57f, "Initializing QuickTime...", gAgent.mMOTD.c_str()); | 1721 | // initialize quicktime libraries (fails gracefully if quicktime not installed ($QUICKTIME) |
1723 | display_startup(); | 1722 | llinfos << "Initializing QuickTime...." << llendl; |
1724 | #if LL_WINDOWS | 1723 | set_startup_status(0.57f, "Initializing QuickTime...", gAgent.mMOTD.c_str()); |
1725 | // Only necessary/available on Windows. | 1724 | display_startup(); |
1726 | if ( InitializeQTML ( 0L ) != noErr ) | 1725 | #if LL_WINDOWS |
1727 | { | 1726 | // Only necessary/available on Windows. |
1728 | // quicktime init failed - turn off media engine support | 1727 | if ( InitializeQTML ( 0L ) != noErr ) |
1729 | LLMediaEngine::getInstance ()->setAvailable ( FALSE ); | 1728 | { |
1730 | llinfos << "...not found - unable to initialize." << llendl; | 1729 | // quicktime init failed - turn off media engine support |
1731 | set_startup_status(0.57f, "QuickTime not found - unable to initialize.", gAgent.mMOTD.c_str()); | 1730 | LLMediaEngine::getInstance ()->setAvailable ( FALSE ); |
1732 | } | 1731 | llinfos << "...not found - unable to initialize." << llendl; |
1733 | else | 1732 | set_startup_status(0.57f, "QuickTime not found - unable to initialize.", gAgent.mMOTD.c_str()); |
1734 | { | 1733 | } |
1735 | llinfos << ".. initialized successfully." << llendl; | 1734 | else |
1736 | set_startup_status(0.57f, "QuickTime initialized successfully.", gAgent.mMOTD.c_str()); | 1735 | { |
1737 | }; | 1736 | llinfos << ".. initialized successfully." << llendl; |
1738 | #endif | 1737 | set_startup_status(0.57f, "QuickTime initialized successfully.", gAgent.mMOTD.c_str()); |
1739 | EnterMovies (); | 1738 | }; |
1740 | gQuickTimeInitialized = true; | 1739 | #endif |
1740 | EnterMovies (); | ||
1741 | gQuickTimeInitialized = true; | ||
1742 | } | ||
1743 | } | ||
1744 | else | ||
1745 | { | ||
1746 | LLMediaEngine::getInstance()->setAvailable( FALSE ); | ||
1741 | } | 1747 | } |
1742 | #endif | 1748 | #endif |
1743 | 1749 | ||
@@ -2316,6 +2322,7 @@ BOOL idle_startup() | |||
2316 | #if 0 // sjb: enable for auto-enabling timer display | 2322 | #if 0 // sjb: enable for auto-enabling timer display |
2317 | gDebugView->mFastTimerView->setVisible(TRUE); | 2323 | gDebugView->mFastTimerView->setVisible(TRUE); |
2318 | #endif | 2324 | #endif |
2325 | |||
2319 | return do_normal_idle; | 2326 | return do_normal_idle; |
2320 | } | 2327 | } |
2321 | 2328 | ||
@@ -3623,6 +3630,7 @@ void release_start_screen() | |||
3623 | gStartImageGL = NULL; | 3630 | gStartImageGL = NULL; |
3624 | } | 3631 | } |
3625 | 3632 | ||
3633 | |||
3626 | // static | 3634 | // static |
3627 | void LLStartUp::setStartupState( S32 state ) | 3635 | void LLStartUp::setStartupState( S32 state ) |
3628 | { | 3636 | { |