39 |
#include "input/input.h" |
#include "input/input.h" |
40 |
#include "python/python.h" |
#include "python/python.h" |
41 |
#include "main/adonthell.h" |
#include "main/adonthell.h" |
42 |
|
#include "event/manager.h" |
43 |
|
|
44 |
using namespace adonthell; |
using namespace adonthell; |
45 |
using std::cerr; |
using std::cerr; |
96 |
// startup event system |
// startup event system |
97 |
if (m & EVENT) |
if (m & EVENT) |
98 |
{ |
{ |
99 |
|
event::manager::init (); |
100 |
} |
} |
101 |
|
|
102 |
return true; |
return true; |
214 |
Cfg.write (Config); |
Cfg.write (Config); |
215 |
|
|
216 |
// cleanup modules |
// cleanup modules |
217 |
|
if (Modules & EVENT) event::manager::cleanup (); |
218 |
if (Modules & INPUT) input::cleanup (); |
if (Modules & INPUT) input::cleanup (); |
219 |
if (Modules & GFX) gfx::cleanup (); |
if (Modules & GFX) gfx::cleanup (); |
220 |
if (Modules & PYTHON) python::cleanup (); |
if (Modules & PYTHON) python::cleanup (); |