forked from MovingBlocks/DestinationSol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
32 lines (27 loc) · 701 Bytes
/
Copy pathrun.bat
File metadata and controls
32 lines (27 loc) · 701 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
30
31
32
@echo off
setlocal
:: Ensure we are in the project root
if not exist "gradlew.bat" (
echo ERROR: gradlew.bat not found.
echo Make sure you are running this script from the DestinationSol project root.
exit /b 1
)
:: Quick Java sanity check
java -version >nul 2>&1
if errorlevel 1 (
echo Java not found. Run setup.bat first.
exit /b 1
)
echo Starting DestinationSol...
echo Log file: %CD%\destinationsol.log
echo.
call gradlew.bat :desktop:run
set EXIT_CODE=%errorlevel%
if %EXIT_CODE% neq 0 (
echo.
echo The game exited with an error (code %EXIT_CODE%^).
echo Check destinationsol.log in this directory for the full crash log.
)
endlocal
pause
exit /b %EXIT_CODE%