Changeset 41 for trunk/src/bindings/scripts/ScriptMgr.cpp
- Timestamp:
- 11/19/08 13:27:02 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bindings/scripts/ScriptMgr.cpp
r37 r41 13 13 #define _FULLVERSION "TrinityScript" 14 14 15 #ifndef _TSCRIPTCONFVERSION16 # define _TSCRIPTCONFVERSION 200810020117 #endif //_TSCRIPTCONFVERSION18 19 15 #ifndef _TRINITY_SCRIPT_CONFIG 20 # define _TRINITY_SCRIPT_CONFIG "trinity script.conf"21 #endif //_TRINITY_SCRIPT_CONFIG16 # define _TRINITY_SCRIPT_CONFIG "trinitycore.conf" 17 #endif _TRINITY_SCRIPT_CONFIG 22 18 23 19 //*** Global data *** … … 597 593 char const* dbstring = NULL; 598 594 599 if( !TScriptConfig.GetString(" TScriptDatabaseInfo", &dbstring) )600 { 601 error_log("TSCR: Missing Trinity Scriptdatabase info from configuration file. Load database aborted.");595 if( !TScriptConfig.GetString("WorldDatabaseInfo", &dbstring) ) 596 { 597 error_log("TSCR: Missing world database info from configuration file. Load database aborted."); 602 598 return; 603 599 } … … 1214 1210 } 1215 1211 else outstring_log("TSCR: Using configuration file %s",_TRINITY_SCRIPT_CONFIG); 1216 1217 //Check config file version1218 if (TScriptConfig.GetIntDefault("ConfVersion", 0) != _TSCRIPTCONFVERSION)1219 error_log("TSCR: Configuration file version doesn't match expected version. Some config variables may be wrong or missing.");1220 1212 1221 1213 //Locale