summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 165c067..92cee05 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -13,7 +13,6 @@
-
//----- Start -----
int main()
{
@@ -21,10 +20,13 @@ int main()
srand(time(NULL));
//Init controller
+#if defined(CONSOLECONTROLLER)
+ ConsoleController controller;
+#elif defined(SFMLCONTROLLER)
SFMLController controller;
-
- //ConsoleController controller;
-
+#else
+#error Please defined which controller to use in CMakeList.txt
+#endif
//Run the game
controller.run();