From 04c4a4590dcf5c3e434232ef01b53650f3d6f242 Mon Sep 17 00:00:00 2001 From: SurprisinglySuspicious Date: Wed, 20 Nov 2024 16:07:52 -0500 Subject: [PATCH 1/2] Issue: If NStrip wasn't found in folder or PATH, it tries to show a message to user, but it doesn't wait for key input, so it just immediately closes. --- copy_and_nstrip_dll.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/copy_and_nstrip_dll.ps1 b/copy_and_nstrip_dll.ps1 index aa4cb97..d4b95db 100644 --- a/copy_and_nstrip_dll.ps1 +++ b/copy_and_nstrip_dll.ps1 @@ -139,7 +139,7 @@ if ($missingMods.Count -gt 0) { Write-Host "" Write-Host "Copied all libraries!" Write-Host "" -Write-Host "Press any key to strip the Dlls using NStrip" +Write-Host "Press any key to strip the DLLs using NStrip..." $HOST.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") | OUT-NULL $HOST.UI.RawUI.Flushinputbuffer() @@ -156,6 +156,10 @@ else { # Display an error message if NStrip.exe could not be found Write-Host "Could not find NStrip.exe in the current directory nor in the PATH." -ForegroundColor Red Write-Host "Visit https://github.com/bbepis/NStrip/releases/latest to grab a copy." -ForegroundColor Red + Write-Host "" + Write-Host "Press any key to exit..." + $HOST.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") | OUT-NULL + $HOST.UI.RawUI.Flushinputbuffer() return } } @@ -169,6 +173,6 @@ foreach($dllFile in $dllsToStrip) { Write-Host "" Write-Host "Copied all libraries and stripped the DLLs!" Write-Host "" -Write-Host "Press any key to exit" +Write-Host "Press any key to exit..." $HOST.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") | OUT-NULL $HOST.UI.RawUI.Flushinputbuffer() From 70a54b632c819a75805851a44de4edd512fb3fab Mon Sep 17 00:00:00 2001 From: SurprisinglySuspicious <100347264+SurprisinglySuspicious@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:59:19 -0500 Subject: [PATCH 2/2] Add it for PATH too --- copy_and_nstrip_dll.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/copy_and_nstrip_dll.ps1 b/copy_and_nstrip_dll.ps1 index d4b95db..0f2c7f3 100644 --- a/copy_and_nstrip_dll.ps1 +++ b/copy_and_nstrip_dll.ps1 @@ -35,6 +35,10 @@ else { else { Write-Host "[ERROR] ChilloutVR.exe not found in CVRPATH or the default Steam location." Write-Host " Please define the Environment Variable CVRPATH pointing to the ChilloutVR folder!" + Write-Host "" + Write-Host "Press any key to exit..." + $HOST.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") | OUT-NULL + $HOST.UI.RawUI.Flushinputbuffer() return } }