aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts/ScriptMgr.cpp
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2008-10-12 17:35:16 -0500
committerXTZGZoReX <none@none>2008-10-12 17:35:16 -0500
commitfdcf5cc4069be8584b21fe42ee90d7d6109b3c9a (patch)
tree00ccaf66482a288d57006d4323f507e61c93b616 /src/bindings/scripts/ScriptMgr.cpp
parenta4ceeacb517d4da05f85ba8230253818d94b9f98 (diff)
[svn] * Random changes/fixes...
* Some fixes to MangChat, more coming. * Cleaning up scripting part and preparing to merge it into the core. --HG-- branch : trunk rename : src/bindings/scripts/README.TXT => src/bindings/scripts/README
Diffstat (limited to 'src/bindings/scripts/ScriptMgr.cpp')
-rw-r--r--src/bindings/scripts/ScriptMgr.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/bindings/scripts/ScriptMgr.cpp b/src/bindings/scripts/ScriptMgr.cpp
index d29999cb003..d66bd891b5e 100644
--- a/src/bindings/scripts/ScriptMgr.cpp
+++ b/src/bindings/scripts/ScriptMgr.cpp
@@ -12,13 +12,9 @@
#define _FULLVERSION "TrinityScript"
-#ifndef _TSCRIPTCONFVERSION
-# define _TSCRIPTCONFVERSION 2008100201
-#endif //_TSCRIPTCONFVERSION
-
#ifndef _TRINITY_SCRIPT_CONFIG
-# define _TRINITY_SCRIPT_CONFIG "trinityscript.conf"
-#endif //_TRINITY_SCRIPT_CONFIG
+# define _TRINITY_SCRIPT_CONFIG "trinitycore.conf"
+#endif _TRINITY_SCRIPT_CONFIG
//*** Global data ***
int nrscripts;
@@ -596,9 +592,9 @@ void LoadDatabase()
//Get db string from file
char const* dbstring = NULL;
- if( !TScriptConfig.GetString("TScriptDatabaseInfo", &dbstring) )
+ if( !TScriptConfig.GetString("WorldDatabaseInfo", &dbstring) )
{
- error_log("TSCR: Missing Trinity Script database info from configuration file. Load database aborted.");
+ error_log("TSCR: Missing world database info from configuration file. Load database aborted.");
return;
}
@@ -1214,10 +1210,6 @@ void ScriptsInit()
}
else outstring_log("TSCR: Using configuration file %s",_TRINITY_SCRIPT_CONFIG);
- //Check config file version
- if (TScriptConfig.GetIntDefault("ConfVersion", 0) != _TSCRIPTCONFVERSION)
- error_log("TSCR: Configuration file version doesn't match expected version. Some config variables may be wrong or missing.");
-
//Locale
Locale = TScriptConfig.GetIntDefault("Locale", 0);