@echo off
setlocal
set "GAME_DIR=%~dp0"
set "GAME_EXE=%GAME_DIR%LufulusOnline.Client.exe"
if not exist "%GAME_EXE%" (
  echo LufulusOnline.Client.exe was not found.
  echo.
  echo If you opened this from inside the zip, right-click lufulus-online-client.zip,
  echo choose Extract All, then run Play LufulusOnline.bat from the extracted folder.
  echo.
  pause
  exit /b 1
)
if not exist "%GAME_DIR%GameData\Phase1\items.json" (
  echo Lufulus GameData is missing.
  echo Extract the full zip before launching the game.
  pause
  exit /b 1
)
start "Lufulus Online" /D "%GAME_DIR%" "%GAME_EXE%" --menu --host 46.225.27.50 --port 7777 %*
exit /b 0
