summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-06-08 15:30:36 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-06-08 15:30:36 (GMT)
commit3ea25c83b7dc039b23af2eeb4279a046fa0bf259 (patch)
tree2e665e8b179bc44c266c0aa090384bd2ba93fd37 /src/main.c
parente94ed7bc113c42a3f8541aa6031f38ab6ddf8063 (diff)
downloadpowder-3ea25c83b7dc039b23af2eeb4279a046fa0bf259.zip
powder-3ea25c83b7dc039b23af2eeb4279a046fa0bf259.tar.gz
message_box and input for Lua API, also autorun.lua
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 3dd1f2b..7c681df 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1741,6 +1741,9 @@ int main(int argc, char *argv[])
http_session_check = http_async_req_start(NULL, "http://" SERVER "/Login.api?Action=CheckSession", NULL, 0, 0);
http_auth_headers(http_session_check, svf_user_id, NULL, svf_session_id);
}
+#ifdef LUACONSOLE
+ luacon_eval("dofile(\"autorun.lua\")"); //Autorun lua script
+#endif
while (!sdl_poll()) //the main loop
{
frameidx++;