-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshell_compile.lua
More file actions
29 lines (26 loc) · 883 Bytes
/
shell_compile.lua
File metadata and controls
29 lines (26 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--[[
Title: Empty shell game file
Author(s): gosling
Date: 2010/6/3
------------------------------------------------------------
For server build, the command line to use this shell is below.
- under windows, it is "bootstrapper=\"script/shell_compile.lua\"".
- under linux shell script, it is 'bootstrapper="script/shell_compile.lua"'
------------------------------------------------------------
]]
NPL.load("(gl)script/ide/commonlib.lua");
main_state = nil;
local function activate()
-- commonlib.echo("heart beat: 30 times per sec");
if(main_state==0) then
-- this is the main game
elseif(main_state==nil) then
main_state=0;
log("Hello World from script/shell_compile.lua\n")
NPL.load("(gl)script/installer/BuildParaWorld.lua");
commonlib.BuildParaWorld.CompileNPLFiles()
commonlib.echo("Compile END !");
ParaGlobal.Exit(0);
end
end
NPL.this(activate);