From 06c3f618edff121d38366b929ba8dd73858258a2 Mon Sep 17 00:00:00 2001 From: Ven0m0 <82972344+Ven0m0@users.noreply.github.com> Date: Mon, 4 May 2026 01:23:46 +0000 Subject: [PATCH 1/2] Perf: Remove hardcoded sleep delay in PlayBootVideo Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> --- Other/playnite-all.ahk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Other/playnite-all.ahk b/Other/playnite-all.ahk index 54eee9c..7e44945 100644 --- a/Other/playnite-all.ahk +++ b/Other/playnite-all.ahk @@ -19,8 +19,7 @@ PlayBootVideo() { vlcPath := MustGetExe("vlc.exe", ["C:\Program Files\VideoLAN\VLC\vlc.exe"]) bootVideo := A_ScriptDir . "\BootVideo.mp4" vlcArgs := '--fullscreen --video-on-top --play-and-exit --no-video-title -Idummy "' . bootVideo . '"' - RunWait('cmd.exe /c START "" "' . vlcPath . '" ' . vlcArgs, , "hide") - DllCall("kernel32.dll\Sleep", "UInt", 3000) + RunWait('"' . vlcPath . '" ' . vlcArgs, , "hide") } LaunchPlaynite() { playniteExe := MustGetExe( From ddec760d604530f2c3755e261a18402ec41917db Mon Sep 17 00:00:00 2001 From: Ven0m0 <82972344+Ven0m0@users.noreply.github.com> Date: Mon, 4 May 2026 01:28:28 +0000 Subject: [PATCH 2/2] Perf: Remove hardcoded sleep delay in PlayBootVideo Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> --- .github/workflows/ahk-lint-format-compile.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ahk-lint-format-compile.yml b/.github/workflows/ahk-lint-format-compile.yml index d6b76ab..9c95898 100644 --- a/.github/workflows/ahk-lint-format-compile.yml +++ b/.github/workflows/ahk-lint-format-compile.yml @@ -19,10 +19,20 @@ jobs: - uses: actions/checkout@v6 - name: Install AutoHotkey v1.1 (Portable) - run: choco install autohotkey.portable --version=1.1.36.01 -y + run: | + for ($i = 0; $i -lt 3; $i++) { + choco install autohotkey.portable --version=1.1.36.01 -y + if ($LASTEXITCODE -eq 0) { break } + Start-Sleep -Seconds 5 + } shell: pwsh - name: Install AutoHotkey v2 - run: choco install autohotkey -y + run: | + for ($i = 0; $i -lt 3; $i++) { + choco install autohotkey -y + if ($LASTEXITCODE -eq 0) { break } + Start-Sleep -Seconds 5 + } shell: pwsh - name: Verify Installations run: |