From 71760514fc044f273914c17b1510fa3cf10419b3 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Fri, 21 Apr 2017 18:31:43 +0500 Subject: 2017-04-21 --- main.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 320fd80..b51bb81 100644 --- a/main.cpp +++ b/main.cpp @@ -1,7 +1,12 @@ +#include #include "Game.hpp" int main() { - Game game; - game.MainLoop(); + try { + Game game; + game.Exec(); + } catch (int e) { + std::cerr << "Catch exception " << e << std::endl; + } return 0; } \ No newline at end of file -- cgit v1.2.3