aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2021-07-03 00:49:03 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-03-30 08:20:20 +0200
commit8c10334252821b6310cf744218f7ad8bed7917f2 (patch)
treef6f11d71eac56fa834783ef54a977b80f2e5efc2 /src/main.c
parentfc9beffe0103a80bf883f85b7ae09dc42b7af50e (diff)
downloadrts-8c10334252821b6310cf744218f7ad8bed7917f2.tar.gz
Add project source code
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
new file mode 100644
index 0000000..fd0759f
--- /dev/null
+++ b/src/main.c
@@ -0,0 +1,14 @@
+#include <game.h>
+#include <system.h>
+#include <stdlib.h>
+
+int main(void)
+{
+ int ret = EXIT_SUCCESS;
+
+ if (system_init() || game())
+ ret = EXIT_FAILURE;
+
+ system_deinit();
+ return ret;
+}