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/viewer.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/viewer.cpp')
-rw-r--r-- | linden/indra/newview/viewer.cpp | 51 |
1 files changed, 37 insertions, 14 deletions
diff --git a/linden/indra/newview/viewer.cpp b/linden/indra/newview/viewer.cpp index a29185f..747d4e0 100644 --- a/linden/indra/newview/viewer.cpp +++ b/linden/indra/newview/viewer.cpp | |||
@@ -49,7 +49,6 @@ | |||
49 | #include <sys/stat.h> | 49 | #include <sys/stat.h> |
50 | #include <memory> | 50 | #include <memory> |
51 | #include <boost/tokenizer.hpp> | 51 | #include <boost/tokenizer.hpp> |
52 | #include "curl/curl.h" | ||
53 | 52 | ||
54 | #if LL_WINDOWS | 53 | #if LL_WINDOWS |
55 | #include <fcntl.h> //_O_APPEND | 54 | #include <fcntl.h> //_O_APPEND |
@@ -156,7 +155,7 @@ | |||
156 | #include "llbutton.h" // For constants | 155 | #include "llbutton.h" // For constants |
157 | #include "llcallbacklist.h" | 156 | #include "llcallbacklist.h" |
158 | #include "llchatbar.h" | 157 | #include "llchatbar.h" |
159 | #include "llcombobox.h" // For constants | 158 | //#include "llcombobox.h" // For constants |
160 | #include "llconsole.h" | 159 | #include "llconsole.h" |
161 | #include "llcontainerview.h" | 160 | #include "llcontainerview.h" |
162 | #include "lldebugview.h" | 161 | #include "lldebugview.h" |
@@ -248,6 +247,13 @@ | |||
248 | #include "llwindebug.h" | 247 | #include "llwindebug.h" |
249 | #include "lldxhardware.h" | 248 | #include "lldxhardware.h" |
250 | #include "llwindowwin32.h" | 249 | #include "llwindowwin32.h" |
250 | |||
251 | // for Logitech LCD keyboards / speakers | ||
252 | #ifndef LL_LOGITECH_LCD_H | ||
253 | #include "lllogitechlcd.h" | ||
254 | #endif | ||
255 | extern void CreateLCDDebugWindows(); | ||
256 | |||
251 | #endif // LL_WINDOWS | 257 | #endif // LL_WINDOWS |
252 | 258 | ||
253 | #if LL_QUICKTIME_ENABLED | 259 | #if LL_QUICKTIME_ENABLED |
@@ -321,6 +327,9 @@ F32 gSimFrames; | |||
321 | // | 327 | // |
322 | // Core Application globals | 328 | // Core Application globals |
323 | // | 329 | // |
330 | #if LL_WINDOWS | ||
331 | llLCD *gLcdScreen = NULL; | ||
332 | #endif | ||
324 | 333 | ||
325 | LLString gSecondLife; | 334 | LLString gSecondLife; |
326 | LLString gWindowTitle; | 335 | LLString gWindowTitle; |
@@ -483,7 +492,6 @@ LLVector3 gRelativeWindVec(0.0, 0.0, 0.0); | |||
483 | BOOL gVelocityInterpolate = TRUE; // (These are written once/frame with the data from gSavedSettings) | 492 | BOOL gVelocityInterpolate = TRUE; // (These are written once/frame with the data from gSavedSettings) |
484 | BOOL gPingInterpolate = TRUE; | 493 | BOOL gPingInterpolate = TRUE; |
485 | 494 | ||
486 | |||
487 | // | 495 | // |
488 | // System info | 496 | // System info |
489 | // | 497 | // |
@@ -1167,7 +1175,8 @@ int main( int argc, char **argv ) | |||
1167 | // | 1175 | // |
1168 | // Check for another instance of the app running | 1176 | // Check for another instance of the app running |
1169 | // | 1177 | // |
1170 | //RN: if we received a URL, hand it off to the existing instance | 1178 | |
1179 | // RN: if we received a URL, hand it off to the existing instance | ||
1171 | // don't call another_instance_running() when doing URL handoff, as | 1180 | // don't call another_instance_running() when doing URL handoff, as |
1172 | // it relies on checking a marker file which will not work when running | 1181 | // it relies on checking a marker file which will not work when running |
1173 | // out of different directories | 1182 | // out of different directories |
@@ -1300,14 +1309,6 @@ int main( int argc, char **argv ) | |||
1300 | if (gSecondInstance) | 1309 | if (gSecondInstance) |
1301 | { | 1310 | { |
1302 | gDisableVoice = TRUE; | 1311 | gDisableVoice = TRUE; |
1303 | /* Don't start another instance if using -multiple | ||
1304 | //RN: if we received a URL, hand it off to the existing instance | ||
1305 | if (LLURLSimString::parse()) | ||
1306 | { | ||
1307 | LLURLSimString::send_to_other_instance(); | ||
1308 | return 1; | ||
1309 | } | ||
1310 | */ | ||
1311 | } | 1312 | } |
1312 | 1313 | ||
1313 | init_marker_file(); | 1314 | init_marker_file(); |
@@ -1689,6 +1690,13 @@ int main( int argc, char **argv ) | |||
1689 | // Show watch cursor | 1690 | // Show watch cursor |
1690 | gViewerWindow->setCursor(UI_CURSOR_WAIT); | 1691 | gViewerWindow->setCursor(UI_CURSOR_WAIT); |
1691 | 1692 | ||
1693 | |||
1694 | #if LL_WINDOWS && LL_LCD_COMPILE | ||
1695 | // start up an LCD window on a logitech keyboard, if there is one | ||
1696 | gLcdScreen = new llLCD(hInstance); | ||
1697 | CreateLCDDebugWindows(); | ||
1698 | #endif | ||
1699 | |||
1692 | // Finish view initialization | 1700 | // Finish view initialization |
1693 | gViewerWindow->initBase(); | 1701 | gViewerWindow->initBase(); |
1694 | 1702 | ||
@@ -1937,8 +1945,11 @@ void main_loop() | |||
1937 | gMovieMaker.Snap(); | 1945 | gMovieMaker.Snap(); |
1938 | } | 1946 | } |
1939 | #endif | 1947 | #endif |
1948 | #if LL_WINDOWS && LL_LCD_COMPILE | ||
1949 | // update LCD Screen | ||
1950 | gLcdScreen->UpdateDisplay(); | ||
1951 | #endif | ||
1940 | } | 1952 | } |
1941 | |||
1942 | } | 1953 | } |
1943 | 1954 | ||
1944 | // Sleep and run background threads | 1955 | // Sleep and run background threads |
@@ -3509,6 +3520,14 @@ void update_statistics(U32 frame_count) | |||
3509 | 3520 | ||
3510 | LLViewerImageList::sTextureBits = 0; | 3521 | LLViewerImageList::sTextureBits = 0; |
3511 | LLViewerImageList::sTexturePackets = 0; | 3522 | LLViewerImageList::sTexturePackets = 0; |
3523 | |||
3524 | #if LL_WINDOWS && LL_LCD_COMPILE | ||
3525 | bool LCDenabled = gLcdScreen->Enabled(); | ||
3526 | gViewerStats->setStat(LLViewerStats::ST_LOGITECH_LCD, LCDenabled); | ||
3527 | #else | ||
3528 | gViewerStats->setStat(LLViewerStats::ST_LOGITECH_LCD, false); | ||
3529 | #endif | ||
3530 | |||
3512 | } | 3531 | } |
3513 | 3532 | ||
3514 | // | 3533 | // |
@@ -5419,7 +5438,6 @@ int parse_args(int argc, char **argv) | |||
5419 | gArgs += argv[j]; | 5438 | gArgs += argv[j]; |
5420 | gArgs += " "; | 5439 | gArgs += " "; |
5421 | 5440 | ||
5422 | LLString argument = argv[j]; | ||
5423 | if ((!strcmp(argv[j], "-port")) && (++j < argc)) | 5441 | if ((!strcmp(argv[j], "-port")) && (++j < argc)) |
5424 | { | 5442 | { |
5425 | sscanf(argv[j], "%u", &(gAgent.mViewerPort)); | 5443 | sscanf(argv[j], "%u", &(gAgent.mViewerPort)); |
@@ -6178,6 +6196,11 @@ void cleanup_app() | |||
6178 | gDXHardware.cleanup(); | 6196 | gDXHardware.cleanup(); |
6179 | #endif // LL_WINDOWS | 6197 | #endif // LL_WINDOWS |
6180 | 6198 | ||
6199 | #if LL_WINDOWS && LL_LCD_COMPILE | ||
6200 | // shut down the LCD window on a logitech keyboard, if there is one | ||
6201 | delete gLcdScreen; | ||
6202 | #endif | ||
6203 | |||
6181 | if (!gVolumeMgr->cleanup()) | 6204 | if (!gVolumeMgr->cleanup()) |
6182 | { | 6205 | { |
6183 | llwarns << "Remaining references in the volume manager!" << llendflush; | 6206 | llwarns << "Remaining references in the volume manager!" << llendflush; |