summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 320fd80..b51bb81 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,7 +1,12 @@
+#include <iostream>
#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