diff options
Diffstat (limited to 'linden/indra/newview/llstartup.h')
-rw-r--r-- | linden/indra/newview/llstartup.h | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/linden/indra/newview/llstartup.h b/linden/indra/newview/llstartup.h index f38f7bf..1a9f659 100644 --- a/linden/indra/newview/llstartup.h +++ b/linden/indra/newview/llstartup.h | |||
@@ -35,18 +35,18 @@ | |||
35 | #include "llimagegl.h" | 35 | #include "llimagegl.h" |
36 | 36 | ||
37 | // functions | 37 | // functions |
38 | BOOL idle_startup(); | 38 | bool idle_startup(); |
39 | LLString load_password_from_disk(); | 39 | std::string load_password_from_disk(); |
40 | void release_start_screen(); | 40 | void release_start_screen(); |
41 | void login_alert_done(S32 option, void* user_data); | 41 | void login_alert_done(S32 option, void* user_data); |
42 | 42 | ||
43 | // constants, variables, & enumerations | 43 | // constants, variables, & enumerations |
44 | extern const char* SCREEN_HOME_FILENAME; | 44 | extern std::string SCREEN_HOME_FILENAME; |
45 | extern const char* SCREEN_LAST_FILENAME; | 45 | extern std::string SCREEN_LAST_FILENAME; |
46 | 46 | ||
47 | enum EStartupState{ | 47 | typedef enum { |
48 | STATE_FIRST, // Initial startup | 48 | STATE_FIRST, // Initial startup |
49 | STATE_MEDIA_INIT, // Initialzie media library | 49 | STATE_BROWSER_INIT, // Initialize web browser for login screen |
50 | STATE_LOGIN_SHOW, // Show login screen | 50 | STATE_LOGIN_SHOW, // Show login screen |
51 | STATE_LOGIN_WAIT, // Wait for user input at login screen | 51 | STATE_LOGIN_WAIT, // Wait for user input at login screen |
52 | STATE_LOGIN_CLEANUP, // Get rid of login screen and start login | 52 | STATE_LOGIN_CLEANUP, // Get rid of login screen and start login |
@@ -57,6 +57,7 @@ enum EStartupState{ | |||
57 | STATE_LOGIN_DOWNLOADING, // Waiting for authentication replies to download | 57 | STATE_LOGIN_DOWNLOADING, // Waiting for authentication replies to download |
58 | STATE_LOGIN_PROCESS_RESPONSE, // Check authentication reply | 58 | STATE_LOGIN_PROCESS_RESPONSE, // Check authentication reply |
59 | STATE_WORLD_INIT, // Start building the world | 59 | STATE_WORLD_INIT, // Start building the world |
60 | STATE_MULTIMEDIA_INIT, // Init the rest of multimedia library | ||
60 | STATE_SEED_GRANTED_WAIT, // Wait for seed cap grant | 61 | STATE_SEED_GRANTED_WAIT, // Wait for seed cap grant |
61 | STATE_SEED_CAP_GRANTED, // Have seed cap grant | 62 | STATE_SEED_CAP_GRANTED, // Have seed cap grant |
62 | STATE_WORLD_WAIT, // Waiting for simulator | 63 | STATE_WORLD_WAIT, // Waiting for simulator |
@@ -68,11 +69,13 @@ enum EStartupState{ | |||
68 | STATE_WEARABLES_WAIT, // Wait for clothing to download | 69 | STATE_WEARABLES_WAIT, // Wait for clothing to download |
69 | STATE_CLEANUP, // Final cleanup | 70 | STATE_CLEANUP, // Final cleanup |
70 | STATE_STARTED // Up and running in-world | 71 | STATE_STARTED // Up and running in-world |
71 | }; | 72 | } EStartupState; |
72 | 73 | ||
73 | // exported symbols | 74 | // exported symbols |
74 | extern BOOL gAgentMovementCompleted; | 75 | extern bool gAgentMovementCompleted; |
75 | extern LLPointer<LLImageGL> gStartImageGL; | 76 | extern LLPointer<LLImageGL> gStartImageGL; |
77 | extern std::string gInitialOutfit; | ||
78 | extern std::string gInitialOutfitGender; // "male" or "female" | ||
76 | 79 | ||
77 | class LLStartUp | 80 | class LLStartUp |
78 | { | 81 | { |
@@ -82,8 +85,17 @@ public: | |||
82 | // going full screen | 85 | // going full screen |
83 | 86 | ||
84 | // Always use this to set gStartupState so changes are logged | 87 | // Always use this to set gStartupState so changes are logged |
85 | static void setStartupState( S32 state ); | 88 | static void setStartupState( EStartupState state ); |
86 | static S32 getStartupState() { return gStartupState; }; | 89 | static EStartupState getStartupState() { return gStartupState; }; |
90 | |||
91 | static void multimediaInit(); | ||
92 | // Initialize LLViewerMedia multimedia engine. | ||
93 | |||
94 | // outfit_folder_name can be a folder anywhere in your inventory, | ||
95 | // but the name must be a case-sensitive exact match. | ||
96 | // gender_name is either "male" or "female" | ||
97 | static void loadInitialOutfit( const std::string& outfit_folder_name, | ||
98 | const std::string& gender_name ); | ||
87 | 99 | ||
88 | static bool dispatchURL(); | 100 | static bool dispatchURL(); |
89 | // if we have a SLURL or sim string ("Ahern/123/45") that started | 101 | // if we have a SLURL or sim string ("Ahern/123/45") that started |
@@ -93,8 +105,9 @@ public: | |||
93 | // *HACK: On startup, if we were passed a secondlife://app/do/foo | 105 | // *HACK: On startup, if we were passed a secondlife://app/do/foo |
94 | // command URL, store it for later processing. | 106 | // command URL, store it for later processing. |
95 | 107 | ||
96 | protected: | 108 | private: |
97 | static S32 gStartupState; // Do not set directly, use LLStartup::setStartupState | 109 | static std::string startupStateToString(EStartupState state); |
110 | static EStartupState gStartupState; // Do not set directly, use LLStartup::setStartupState | ||
98 | }; | 111 | }; |
99 | 112 | ||
100 | 113 | ||