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" |
|
#include "event/time_event_manager.h" |
|
42 |
|
|
43 |
using namespace adonthell; |
using namespace adonthell; |
44 |
using std::cerr; |
using std::cerr; |
92 |
if (!input::init (Backend)) return false; |
if (!input::init (Backend)) return false; |
93 |
} |
} |
94 |
|
|
|
// startup event system |
|
|
if (m & EVENT) |
|
|
{ |
|
|
events::time_event_manager::init (); |
|
|
} |
|
|
|
|
95 |
return true; |
return true; |
96 |
} |
} |
97 |
|
|
220 |
Cfg.write (Config); |
Cfg.write (Config); |
221 |
|
|
222 |
// cleanup modules |
// cleanup modules |
|
if (Modules & EVENT) events::time_event_manager::cleanup (); |
|
223 |
if (Modules & INPUT) input::cleanup (); |
if (Modules & INPUT) input::cleanup (); |
224 |
if (Modules & GFX) gfx::cleanup (); |
if (Modules & GFX) gfx::cleanup (); |
225 |
if (Modules & PYTHON) python::cleanup (); |
if (Modules & PYTHON) python::cleanup (); |