Changeset 44 for trunk/src/trinitycore/Main.cpp
- Timestamp:
- 11/19/08 13:27:40 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/trinitycore/Main.cpp
r39 r44 1 1 /* 2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 3 * 4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify … … 9 11 * This program is distributed in the hope that it will be useful, 10 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 14 * GNU General Public License for more details. 13 15 * 14 16 * You should have received a copy of the GNU General Public License 15 17 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 19 */ 18 20 19 /// \addtogroup mangosd MangosDaemon21 /// \addtogroup Trinityd Trinity Daemon 20 22 /// @{ 21 23 /// \file … … 26 28 #include "Log.h" 27 29 #include "Master.h" 28 #include "../game/IRCConf.h"29 #include "../game/IRCClient.h"30 30 31 31 #ifndef _TRINITY_CORE_CONFIG … … 41 41 #ifdef WIN32 42 42 #include "ServiceWin32.h" 43 char serviceName[] = " mangosd";44 char serviceLongName[] = " MaNGOS worldservice";43 char serviceName[] = "Trinityd"; 44 char serviceLongName[] = "Trinity core service"; 45 45 char serviceDescription[] = "Massive Network Game Object Server"; 46 46 /* … … 73 73 } 74 74 75 /// Launch the mangosserver75 /// Launch the Trinity server 76 76 extern int main(int argc, char **argv) 77 77 { 78 78 ///- Command line parsing to get the configuration file name 79 79 char const* cfg_file = _TRINITY_CORE_CONFIG; 80 char const* mc_cfg_file = _TRINITY_CORE_CONFIG;81 80 int c=1; 82 81 while( c < argc ) … … 140 139 } 141 140 142 sIRC.SetCfg(mc_cfg_file);143 141 sLog.outString("Using configuration file %s.", cfg_file); 144 142 … … 163 161 // 0 - normal shutdown 164 162 // 1 - shutdown at error 165 // 2 - restart command used, this code can be used by restarter for restart mangosd163 // 2 - restart command used, this code can be used by restarter for restart Trinityd 166 164 } 167 165