summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-12-17 21:30:00 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-12-17 21:30:00 (GMT)
commit8ae0384f09f8f94eb9cc3f07e235114e5d589b36 (patch)
tree6060931a0e591127527fb883ec2e6bddc8565590 /src/main.c
parent03352ca1f4115eff5efac7547c3e507bce656496 (diff)
downloadpowder-8ae0384f09f8f94eb9cc3f07e235114e5d589b36.zip
powder-8ae0384f09f8f94eb9cc3f07e235114e5d589b36.tar.gz
Add option for lua parts array to use native data using ffi
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index ef150ac..f732f2a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1666,9 +1666,6 @@ int main(int argc, char *argv[])
fmt.callback = mixaudio;
fmt.userdata = NULL;
-#ifdef LUACONSOLE
- luacon_open();
-#endif
#ifdef MT
numCores = core_count();
#endif
@@ -1679,6 +1676,10 @@ int main(int argc, char *argv[])
init_can_move();
clear_sim();
+#ifdef LUACONSOLE
+ luacon_open();
+#endif
+
colour_mode = COLOUR_DEFAULT;
init_display_modes();