mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-09-23 13:56:19 +00:00
Prevent deletion of the setup batch file if it is not successful
This commit is contained in:
@@ -24,6 +24,7 @@ if not exist nvngx.dll (
|
||||
REM Set paths based on current directory
|
||||
set "gamePath=%~dp0"
|
||||
set "optiScalerFile=%gamePath%\nvngx.dll"
|
||||
set setupSuccess=false
|
||||
|
||||
REM Check if the Engine folder exists
|
||||
if exist "%gamePath%\Engine" (
|
||||
@@ -190,10 +191,15 @@ echo /__ /) / () (/
|
||||
echo _/ /
|
||||
echo.
|
||||
|
||||
set setupSuccess=true
|
||||
|
||||
:end
|
||||
pause
|
||||
REM Remove "OptiScaler Setup.bat"
|
||||
del %0
|
||||
|
||||
if "%setupSuccess%"=="true" (
|
||||
REM Remove "OptiScaler Setup.bat"
|
||||
del %0
|
||||
)
|
||||
|
||||
REM Remove leftover "nvngx_dlss_copy.dll"
|
||||
if exist "nvngx_dlss_copy.dll" (
|
||||
|
||||
Reference in New Issue
Block a user