Show
Ignore:
Timestamp:
11/19/08 13:27:02 (17 years ago)
Author:
yumileroy
Message:

[svn] * Random changes/fixes...
* Some fixes to MangChat?, more coming.
* Cleaning up scripting part and preparing to merge it into the core.

Original author: XTZGZoReX
Date: 2008-10-12 17:35:16-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/bindings/scripts/ScriptMgr.cpp

    r37 r41  
    1313#define _FULLVERSION "TrinityScript" 
    1414 
    15 #ifndef _TSCRIPTCONFVERSION 
    16 # define _TSCRIPTCONFVERSION 2008100201 
    17 #endif //_TSCRIPTCONFVERSION 
    18  
    1915#ifndef _TRINITY_SCRIPT_CONFIG 
    20 # define _TRINITY_SCRIPT_CONFIG  "trinityscript.conf" 
    21 #endif //_TRINITY_SCRIPT_CONFIG 
     16# define _TRINITY_SCRIPT_CONFIG  "trinitycore.conf" 
     17#endif _TRINITY_SCRIPT_CONFIG 
    2218 
    2319//*** Global data *** 
     
    597593    char const* dbstring = NULL; 
    598594 
    599     if( !TScriptConfig.GetString("TScriptDatabaseInfo", &dbstring) ) 
    600     { 
    601         error_log("TSCR: Missing Trinity Script database 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."); 
    602598        return; 
    603599    } 
     
    12141210    } 
    12151211    else outstring_log("TSCR: Using configuration file %s",_TRINITY_SCRIPT_CONFIG); 
    1216  
    1217     //Check config file version 
    1218     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."); 
    12201212 
    12211213    //Locale