EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
evecollector.cpp
Go to the documentation of this file.
1 /*
2  ------------------------------------------------------------------------------------
3  LICENSE:
4  ------------------------------------------------------------------------------------
5  This file is part of EVEmu: EVE Online Server Emulator
6  Copyright 2006 - 2021 The EVEmu Team
7  For the latest information visit http://evemu.mmoforge.org
8  ------------------------------------------------------------------------------------
9  This program is free software; you can redistribute it and/or modify it under
10  the terms of the GNU Lesser General Public License as published by the Free Software
11  Foundation; either version 2 of the License, or (at your option) any later
12  version.
13 
14  This program is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public License along with
19  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
20  Place - Suite 330, Boston, MA 02111-1307, USA, or go to
21  http://www.gnu.org/copyleft/lesser.txt.
22  ------------------------------------------------------------------------------------
23  Author: Zhur
24 */
25 
26 #include "../common/logsys.h"
27 #include "../common/PyRep.h"
28 #include "EVECollectDisp.h"
29 
30 extern int EVE_NIDS_main(EVECollectDispatcher *disp, int argc, char *argv[]);
31 
32 int main(int argc, char *argv[]) {
33 
34  if(!load_log_settings("log.ini"))
35  _log(COLLECT__MESSAGE, "Warning: Unable to read %s", "log.ini");
36  else
37  _log(COLLECT__MESSAGE, "Log settings loaded from %s", "log.ini");
38 
39  if(!PyRepString::LoadStringFile("strings.txt"))
40  _log(COLLECT__ERROR, "Unable to open ./strings.txt, I need it to decode string table elements!");
41 
42  EVECollectDispatcher dispatch;
43  dispatch.lookResolver.LoadIntFile("intres.txt");
44  dispatch.lookResolver.LoadStringFile("strres.txt");
45 
46  return(EVE_NIDS_main(&dispatch, argc, argv));
47 }
48 
49 
50 
51 
#define _log(type, fmt,...)
Definition: logsys.h:124
bool load_log_settings(const char *filename)
Definition: logsys.cpp:168
int EVE_NIDS_main(EVECollectDispatcher *disp, int argc, char *argv[])
Definition: EVEnids.cpp:196
int main(int argc, char *argv[])
PyLookupResolver lookResolver
bool LoadIntFile(const char *file)
bool LoadStringFile(const char *file)