fix(scripts): bypass PowerShell execution policy in PLAY_FRAMEGEN.cmd and fix Windows 11 HAGS check

- Pass -ExecutionPolicy Bypass when PLAY_FRAMEGEN.cmd invokes scripts/play-gta6-framegen.ps1 so double-clicking works on default Windows PowerShell settings (Restricted).
- Treat an absent HwSchMode registry value on Windows 11 (build >= 22000) as default-enabled instead of printing a false 'HAGS: off' warning; HwSchMode=1 is still reported as off.
This commit is contained in:
wike1701 committed 2026-11-27 11:46:45 +01:00
1 parent 9341f4316f
commit 0a542c06ff
2 files changed
+13 -4

No files matched your search

+2 -2
View File
@@ -13,7 +13,7 @@ if not exist "%PS1%" (
exit /b 1
)
if /i "%~1"=="check" (
%PSH% -NoProfile -File "%PS1%" -Check
%PSH% -NoProfile -ExecutionPolicy Bypass -File "%PS1%" -Check
pause
exit /b 0
)
@@ -38,7 +38,7 @@ if errorlevel 6 (set "PICK=6") else if errorlevel 5 (set "PICK=5") else if error
:run
echo.
%PSH% -NoProfile -File "%PS1%" -Mode %PICK%
%PSH% -NoProfile -ExecutionPolicy Bypass -File "%PS1%" -Mode %PICK%
:end
echo.