Fix Windows visual QA helper checks

This commit is contained in:
2026-05-19 11:48:39 -07:00
parent f27f2f9969
commit c37d8d930c
2 changed files with 28 additions and 42 deletions
+14 -21
View File
@@ -6,9 +6,21 @@ set "PACKAGE_DIR=%PROJECT_DIR%\Builds\WindowsDevelopment"
set "DEMO_EXE=%PACKAGE_DIR%\AgrarianGame.exe"
set "CAPTURE_ROOT=%PROJECT_DIR%\Saved\VisualQA\GpuStartup"
if /I "%~1"=="--check-tools" goto CHECK_TOOLS
if not exist "%DEMO_EXE%" (
echo ERROR: Packaged demo executable not found: "%DEMO_EXE%"
exit /b 2
)
call :CHECK_COMMON || exit /b %ERRORLEVEL%
sc query SunshineService | find /I "RUNNING" >nul 2>nul
if errorlevel 1 (
echo ERROR: SunshineService is not running. Start Sunshine before the GPU visual test.
exit /b 3
)
if /I "%~1"=="--check-tools" (
echo READY: packaged demo exists and SunshineService is running.
exit /b 0
)
if not exist "%CAPTURE_ROOT%" mkdir "%CAPTURE_ROOT%" >nul 2>nul
@@ -39,22 +51,3 @@ echo Create visual-startup-check.txt in the capture folder with package path,
echo launcher used, capture method, tester, pass/fail result, and notes.
echo.
exit /b 0
:CHECK_TOOLS
call :CHECK_COMMON || exit /b %ERRORLEVEL%
echo READY: packaged demo exists and SunshineService is running.
exit /b 0
:CHECK_COMMON
if not exist "%DEMO_EXE%" (
echo ERROR: Packaged demo executable not found: "%DEMO_EXE%"
exit /b 2
)
sc query SunshineService | find /I "RUNNING" >nul 2>nul
if errorlevel 1 (
echo ERROR: SunshineService is not running. Start Sunshine before the GPU visual test.
exit /b 3
)
exit /b 0