VFS/LFS usage in llstartup.cpp

From Second Life Wiki
< VFS
Jump to navigation Jump to search

/newview/llstartup.cpp

<php>74 #include "llvfs.h"</php>

<php>215 // local function declaration ( . . . ) 233 void asset_callback_nothing(LLVFS*, const LLUUID&, LLAssetType::EType, void*, S32); </php>

<php>298 // Returns FALSE to skip other idle processing. Should only return 299 // TRUE when all initialization done. 300 BOOL idle_startup() 301 { ( . . . ) 504 // start the xfer system. by default, choke the downloads 505 // a lot... 506 const S32 VIEWER_MAX_XFER = 3; 507 start_xfer_manager(gVFS); 508 gXferManager->setMaxIncomingXfers(VIEWER_MAX_XFER); 509 F32 xfer_throttle_bps = gSavedSettings.getF32("XferThrottle"); 510 if (xfer_throttle_bps > 1.f) 511 { 512 gXferManager->setUseAckThrottling(TRUE); 513 gXferManager->setAckThrottleBPS(xfer_throttle_bps); 514 } 515 gAssetStorage = new LLViewerAssetStorage(msg, gXferManager, gVFS); ( . . . ) 891 // Display the startup progress bar. 892 gViewerWindow->setShowProgress(TRUE); 893 gViewerWindow->setProgressCancelButtonVisible(TRUE, "Quit"); 894 895 // Poke the VFS, which could potentially block for a while if 896 // Windows XP is acting up 897 set_startup_status(0.07f, "Verifying cache files (can take 60-90 seconds)...", NULL); 898 display_startup(); 899 900 gVFS->pokeFiles(); </php>

<php>3032 void init_stat_view() 3033 { ( . . . ) 3245 stat_barp = net_statviewp->addStat("VFS Pending Ops", &(gViewerStats->mVFSPendingOperations)); 3246 stat_barp->setUnitLabel(" "); 3247 stat_barp->mPerSec = FALSE; 3248 stat_barp->mDisplayBar = FALSE; </php>

<php>3495 void asset_callback_nothing(LLVFS*, const LLUUID&, LLAssetType::EType, void*, S32) 3496 { 3497 // nothing 3498 }</php>