X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fmain.cpp;h=5381a86a1f15207415183d634bf91a6d7328a4da;hb=b1d92c2f86c7da20ef22f9e064ff9b1a2d5ede4e;hp=60fb8344ad9d3aa3f2c129875e92ed79779b6dc8;hpb=e68f847b245153427266841ae724d602ca434c29;p=physics.git diff --git a/src/main.cpp b/src/main.cpp index 60fb834..5381a86 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -27,6 +27,7 @@ #include "graphics/graphics.h" #include "input/inputManager.h" +#include "config/config.h" /// ***** Private Method Headers ***** @@ -90,6 +91,8 @@ void init() input::init(); + cfg::init(); + #ifdef DEBUGGING cout << "Initialization Complete" << endl; #endif @@ -101,6 +104,8 @@ void clean() cout << "Cleaning up" << endl; #endif + cfg::clean(); + input::clean(); game::clean(); @@ -178,7 +183,7 @@ void handleInput() game::input(); - if(input::wasReleased(SDLK_ESCAPE)) + if(cfg::endGame()) is_Running = false; }