Files
hytale-f2p/test-wrapper/java-wrapper.bat
sanasol 66493d35ca Fix community link order: TG Group > TG Channel > Chat
Consistent order across all files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 01:11:17 +01:00

20 lines
591 B
Batchfile

@echo off
setlocal EnableDelayedExpansion
REM Java wrapper for Windows - strips UseCompactObjectHeaders, adds --disable-sentry
REM Uses %* string replacement instead of for-loop to preserve = signs in JVM flags
set "REAL_JAVA=%~dp0java-original.exe"
set "ARGS=%*"
REM Strip -XX:+UseCompactObjectHeaders
set "ARGS=!ARGS:-XX:+UseCompactObjectHeaders=!"
REM Check if running HytaleServer.jar and add --disable-sentry
echo !ARGS! | findstr /i "HytaleServer.jar" >nul 2>&1
if !ERRORLEVEL!==0 (
"%REAL_JAVA%" !ARGS! --disable-sentry
) else (
"%REAL_JAVA%" !ARGS!
)
exit /b !ERRORLEVEL!