@echo off
title Launcher - Aliquem v2.4

set "TARGET_DIR=%~dp0"
set "PYTHON_EXE=%TARGET_DIR%python314\python.exe"

:: ==================== DEBUG CHECK ====================
echo ============================================================
echo [DEBUG] Testing Python Binary Path...
echo Path: "%PYTHON_EXE%"
echo.

:: Prüft, ob die Datei überhaupt im Ordner existiert
if not exist "%PYTHON_EXE%" (
    echo [ERROR] python.exe was NOT found in the python314 folder!
    pause
    exit /b 1
)

:: Führt die python.exe mit --version aus, um die Version anzuzeigen
echo Active Python Version:
"%PYTHON_EXE%" --version
echo ============================================================
echo.
:: ======================================================

echo Starting application...
echo.

"%PYTHON_EXE%" "%TARGET_DIR%steam.pyc" %*

if %ERRORLEVEL% NEQ 0 (
    echo.
    echo [NOTICE] Application closed with error code %ERRORLEVEL%.
    pause
)