-
Notifications
You must be signed in to change notification settings - Fork 314
/
run.bat
33 lines (28 loc) · 1.1 KB
/
run.bat
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
30
31
32
33
::----------------------------------------------------------------::
:: Copyright (c) 2010-2011 Zipline Games, Inc.
:: All Rights Reserved.
:: http://getmoai.com
::----------------------------------------------------------------::
@echo off
:: verify paths
if not exist "%MOAI_BIN%\moai.exe" (
echo.
echo --------------------------------------------------------------------------------
echo ERROR: The MOAI_BIN environment variable either doesn't exist or it's pointing
echo to an invalid path. Please point it at a folder containing moai.exe.
echo --------------------------------------------------------------------------------
echo.
goto end
)
if not exist "%MOAI_CONFIG%" (
echo.
echo -------------------------------------------------------------------------------
echo WARNING: The MOAI_CONFIG environment variable either doesn't exist or it's
echo pointing to an invalid path. Please point it at a folder containing config.lua.
echo -------------------------------------------------------------------------------
echo.
)
:: run moai
"%MOAI_BIN%\moai" "%MOAI_CONFIG%\config.lua" "main.lua"
:end
pause