diff options
-rw-r--r-- | ChangeLog.txt | 10 | ||||
-rw-r--r-- | linden/indra/llcommon/llversionviewer.h | 4 | ||||
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 16 | ||||
-rw-r--r-- | linden/indra/newview/llfloaterabout.cpp | 13 | ||||
-rw-r--r-- | linden/indra/newview/llpanellogin.cpp | 17 |
5 files changed, 47 insertions, 13 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index e633431..8c3a030 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,6 +1,16 @@ | |||
1 | 2008-10-01 Jacek Antonelli <jacek.antonelli@gmail.com> | 1 | 2008-10-01 Jacek Antonelli <jacek.antonelli@gmail.com> |
2 | 2 | ||
3 | * linden/indra/llcommon/llversionviewer.h: | 3 | * linden/indra/llcommon/llversionviewer.h: |
4 | Added Imprudence-specific version numbers. | ||
5 | * linden/indra/newview/llappviewer.cpp: | ||
6 | Ditto. | ||
7 | * linden/indra/newview/llpanellogin.cpp: | ||
8 | Ditto. | ||
9 | * linden/indra/newview/llfloaterabout.cpp: | ||
10 | Ditto. | ||
11 | |||
12 | |||
13 | * linden/indra/llcommon/llversionviewer.h: | ||
4 | Changed viewer and channel name to "Imprudence". | 14 | Changed viewer and channel name to "Imprudence". |
5 | * linden/indra/newview/llappviewer.cpp: | 15 | * linden/indra/newview/llappviewer.cpp: |
6 | Ditto. | 16 | Ditto. |
diff --git a/linden/indra/llcommon/llversionviewer.h b/linden/indra/llcommon/llversionviewer.h index 2c6f951..385a3e9 100644 --- a/linden/indra/llcommon/llversionviewer.h +++ b/linden/indra/llcommon/llversionviewer.h | |||
@@ -42,4 +42,8 @@ const char * const LL_CHANNEL = "Imprudence"; | |||
42 | const char * const LL_VIEWER_NAME = "Second Life"; | 42 | const char * const LL_VIEWER_NAME = "Second Life"; |
43 | const char * const IMP_VIEWER_NAME = "Imprudence"; | 43 | const char * const IMP_VIEWER_NAME = "Imprudence"; |
44 | 44 | ||
45 | const S32 IMP_VERSION_MAJOR = 1; | ||
46 | const S32 IMP_VERSION_MINOR = 0; | ||
47 | const S32 IMP_VERSION_PATCH = 0; | ||
48 | |||
45 | #endif | 49 | #endif |
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 90d0429..3ef3894 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -602,8 +602,12 @@ bool LLAppViewer::init() | |||
602 | writeSystemInfo(); | 602 | writeSystemInfo(); |
603 | 603 | ||
604 | // Build a string representing the current version number. | 604 | // Build a string representing the current version number. |
605 | gCurrentVersion = llformat("%s %d.%d.%d.%d", | 605 | gCurrentVersion = llformat("%s %d.%d.%d / %s %d.%d.%d.%d", |
606 | gSavedSettings.getString("VersionChannelName").c_str(), | 606 | gSavedSettings.getString("VersionChannelName").c_str(), |
607 | IMP_VERSION_MAJOR, | ||
608 | IMP_VERSION_MINOR, | ||
609 | IMP_VERSION_PATCH, | ||
610 | LL_VIEWER_NAME, | ||
607 | LL_VERSION_MAJOR, | 611 | LL_VERSION_MAJOR, |
608 | LL_VERSION_MINOR, | 612 | LL_VERSION_MINOR, |
609 | LL_VERSION_PATCH, | 613 | LL_VERSION_PATCH, |
@@ -2216,6 +2220,9 @@ void LLAppViewer::writeSystemInfo() | |||
2216 | gDebugInfo["SLLog"] = LLError::logFileName(); | 2220 | gDebugInfo["SLLog"] = LLError::logFileName(); |
2217 | 2221 | ||
2218 | gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); | 2222 | gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); |
2223 | gDebugInfo["ClientInfo"]["ImpMajorVersion"] = IMP_VERSION_MAJOR; | ||
2224 | gDebugInfo["ClientInfo"]["ImpMinorVersion"] = IMP_VERSION_MINOR; | ||
2225 | gDebugInfo["ClientInfo"]["ImpPatchVersion"] = IMP_VERSION_PATCH; | ||
2219 | gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR; | 2226 | gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR; |
2220 | gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR; | 2227 | gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR; |
2221 | gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH; | 2228 | gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH; |
@@ -2245,9 +2252,7 @@ void LLAppViewer::writeSystemInfo() | |||
2245 | #endif | 2252 | #endif |
2246 | 2253 | ||
2247 | // Dump some debugging info | 2254 | // Dump some debugging info |
2248 | LL_INFOS("SystemInfo") << gSecondLife | 2255 | LL_INFOS("SystemInfo") << gCurrentVersion << LL_ENDL; |
2249 | << " version " << LL_VERSION_MAJOR << "." << LL_VERSION_MINOR << "." << LL_VERSION_PATCH | ||
2250 | << LL_ENDL; | ||
2251 | 2256 | ||
2252 | // Dump the local time and time zone | 2257 | // Dump the local time and time zone |
2253 | time_t now; | 2258 | time_t now; |
@@ -2298,6 +2303,9 @@ void LLAppViewer::handleViewerCrash() | |||
2298 | //to check against no matter what | 2303 | //to check against no matter what |
2299 | gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); | 2304 | gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); |
2300 | 2305 | ||
2306 | gDebugInfo["ClientInfo"]["ImpMajorVersion"] = IMP_VERSION_MAJOR; | ||
2307 | gDebugInfo["ClientInfo"]["ImpMinorVersion"] = IMP_VERSION_MINOR; | ||
2308 | gDebugInfo["ClientInfo"]["ImpPatchVersion"] = IMP_VERSION_PATCH; | ||
2301 | gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR; | 2309 | gDebugInfo["ClientInfo"]["MajorVersion"] = LL_VERSION_MAJOR; |
2302 | gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR; | 2310 | gDebugInfo["ClientInfo"]["MinorVersion"] = LL_VERSION_MINOR; |
2303 | gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH; | 2311 | gDebugInfo["ClientInfo"]["PatchVersion"] = LL_VERSION_PATCH; |
diff --git a/linden/indra/newview/llfloaterabout.cpp b/linden/indra/newview/llfloaterabout.cpp index a90edb4..0486f57 100644 --- a/linden/indra/newview/llfloaterabout.cpp +++ b/linden/indra/newview/llfloaterabout.cpp | |||
@@ -109,11 +109,14 @@ LLFloaterAbout::LLFloaterAbout() | |||
109 | viewer_link_style->setColor(gSavedSettings.getColor4("HTMLLinkColor")); | 109 | viewer_link_style->setColor(gSavedSettings.getColor4("HTMLLinkColor")); |
110 | 110 | ||
111 | // Version string | 111 | // Version string |
112 | std::string version = LLAppViewer::instance()->getSecondLifeTitle() | 112 | std::string version = llformat( |
113 | + llformat(" %d.%d.%d (%d) %s %s (%s)\n", | 113 | "%s %d.%d.%d / %s %d.%d.%d (%d), %s %s\n", |
114 | LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_VIEWER_BUILD, | 114 | IMP_VIEWER_NAME, |
115 | __DATE__, __TIME__, | 115 | IMP_VERSION_MAJOR, IMP_VERSION_MINOR, IMP_VERSION_PATCH, |
116 | gSavedSettings.getString("VersionChannelName").c_str()); | 116 | LL_VIEWER_NAME, |
117 | LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_VIEWER_BUILD, | ||
118 | __DATE__, __TIME__); | ||
119 | |||
117 | support_widget->appendColoredText(version, FALSE, FALSE, gColors.getColor("TextFgReadOnlyColor")); | 120 | support_widget->appendColoredText(version, FALSE, FALSE, gColors.getColor("TextFgReadOnlyColor")); |
118 | support_widget->appendStyledText(LLTrans::getString("ReleaseNotes"), FALSE, FALSE, &viewer_link_style); | 121 | support_widget->appendStyledText(LLTrans::getString("ReleaseNotes"), FALSE, FALSE, &viewer_link_style); |
119 | 122 | ||
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp index ffee058..61bf215 100644 --- a/linden/indra/newview/llpanellogin.cpp +++ b/linden/indra/newview/llpanellogin.cpp | |||
@@ -419,15 +419,24 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect, | |||
419 | 419 | ||
420 | // childSetAction("quit_btn", onClickQuit, this); | 420 | // childSetAction("quit_btn", onClickQuit, this); |
421 | 421 | ||
422 | std::string channel = gSavedSettings.getString("VersionChannelName"); | 422 | std::string imp_channel = gSavedSettings.getString("VersionChannelName"); |
423 | std::string version = llformat("%d.%d.%d (%d)", | 423 | std::string imp_version = llformat("%d.%d.%d", |
424 | IMP_VERSION_MAJOR, | ||
425 | IMP_VERSION_MINOR, | ||
426 | IMP_VERSION_PATCH ); | ||
427 | |||
428 | std::string ll_channel = LL_VIEWER_NAME; | ||
429 | std::string ll_version = llformat("%d.%d.%d (%d)", | ||
424 | LL_VERSION_MAJOR, | 430 | LL_VERSION_MAJOR, |
425 | LL_VERSION_MINOR, | 431 | LL_VERSION_MINOR, |
426 | LL_VERSION_PATCH, | 432 | LL_VERSION_PATCH, |
427 | LL_VIEWER_BUILD ); | 433 | LL_VIEWER_BUILD ); |
434 | |||
428 | LLTextBox* channel_text = getChild<LLTextBox>("channel_text"); | 435 | LLTextBox* channel_text = getChild<LLTextBox>("channel_text"); |
429 | channel_text->setTextArg("[CHANNEL]", channel); | 436 | channel_text->setTextArg("[CHANNEL]", imp_channel); |
430 | channel_text->setTextArg("[VERSION]", version); | 437 | channel_text->setTextArg("[VERSION]", imp_version); |
438 | channel_text->setTextArg("[ALT_CHANNEL]", ll_channel); | ||
439 | channel_text->setTextArg("[ALT_VERSION]", ll_version); | ||
431 | channel_text->setClickedCallback(onClickVersion); | 440 | channel_text->setClickedCallback(onClickVersion); |
432 | channel_text->setCallbackUserData(this); | 441 | channel_text->setCallbackUserData(this); |
433 | 442 | ||