diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 5b7737d9..e179fd32 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -301,6 +301,7 @@ void init_engine(const Options &options) bpp << " video mode: " << SDL_GetError() << std::endl; exit(1); } + // Initialize for drawing graphics->_beginDraw(); @@ -324,14 +325,16 @@ void init_engine(const Options &options) logger->log("Warning: %s", err); } - //Initialize keyboard + // Initialize keyboard keyboard.init(); } /** Clear the engine */ void exit_engine() { + // Before config.write() since it writes the shortcuts to the config delete itemShortcut; + config.write(); delete gui; |