X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=5381a86a1f15207415183d634bf91a6d7328a4da;hp=60fb8344ad9d3aa3f2c129875e92ed79779b6dc8;hb=b1d92c2f86c7da20ef22f9e064ff9b1a2d5ede4e;hpb=8f8b6693595f6e3be9f43369e898e12539892e88 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; }