| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4cdf9d8 commit 1f51cb6
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -226,13 +226,7 @@ void Script::RegisterSelf(bool bReportError) | |||
| 226 | 226 | MANGOS_DLL_EXPORT | |
| 227 | 227 | char const* GetScriptLibraryVersion() | |
| 228 | 228 | { | |
| 229 | - if (!strSD2Version.empty()) | ||
| 230 | - { | ||
| 231 | - strSD2Version.append(_FULLVERSION); | ||
| 232 | - return strSD2Version.c_str(); | ||
| 233 | - } | ||
| 234 | - | ||
| 235 | - return _FULLVERSION; | ||
| 229 | + return strSD2Version.c_str(); | ||
| 236 | 230 | } | |
| 237 | 231 | ||
| 238 | 232 | MANGOS_DLL_EXPORT | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | 5 | #include "precompiled.h" | |
| 6 | 6 | #include "system.h" | |
| 7 | + #include "../config.h" | ||
| 7 | 8 | #include "ProgressBar.h" | |
| 8 | 9 | #include "ObjectMgr.h" | |
| 9 | 10 | #include "Database/DatabaseEnv.h" | |
@@ -32,16 +33,19 @@ void SystemMgr::LoadVersion() | |||
| 32 | 33 | ||
| 33 | 34 | strSD2Version = pFields[0].GetCppString(); | |
| 34 | 35 | ||
| 35 | - outstring_log("Loading %s", strSD2Version.c_str()); | ||
| 36 | - outstring_log(""); | ||
| 37 | - | ||
| 38 | 36 | delete pResult; | |
| 39 | 37 | } | |
| 40 | 38 | else | |
| 41 | - { | ||
| 42 | 39 | error_log("SD2: Missing `sd2_db_version` information."); | |
| 43 | - outstring_log(""); | ||
| 44 | - } | ||
| 40 | + | ||
| 41 | + // Setup version info and display it | ||
| 42 | + if (strSD2Version.empty()) | ||
| 43 | + strSD2Version.append("ScriptDev2 "); | ||
| 44 | + | ||
| 45 | + strSD2Version.append(_FULLVERSION); | ||
| 46 | + | ||
| 47 | + outstring_log("Loading %s", strSD2Version.c_str()); | ||
| 48 | + outstring_log(""); | ||
| 45 | 49 | } | |
| 46 | 50 | ||
| 47 | 51 | void SystemMgr::LoadScriptTexts() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ | |||
| 6 | 6 | #define SC_SYSTEM_H | |
| 7 | 7 | ||
| 8 | 8 | extern DatabaseType SD2Database; | |
| 9 | - extern std::string strSD2Version; //version info from database | ||
| 9 | + extern std::string strSD2Version; //version info: database entry and revision | ||
| 10 | 10 | ||
| 11 | 11 | #define TEXT_SOURCE_RANGE -1000000 //the amount of entries each text source has available | |
| 12 | 12 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments