Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- chcp 65001 > nul 2>&1
- setlocal EnableExtensions EnableDelayedExpansion
- set hasSSEEdit=0
- set hasXEdit=0
- set hasAnyEdit=1
- set hasESLifyScript=0
- set hasMXPF==0
- set hasMTEFunctions==0
- set "pathSSEEdit404=%CD%\SSEEdit404.exe"
- set "pathSSEEdit=%CD%\SSEEdit.exe"
- IF EXIST "SSEEdit404.exe" set hasSSEEdit=1
- IF NOT EXIST "SSEEdit404.exe" set hasAnyEdit=0
- IF EXIST "Edit Scripts\R88_ESLify.pas" set hasESLifyScript=1
- IF EXIST "Edit Scripts\lib\mxpf.pas" set hasMXPF=1
- IF EXIST "Edit Scripts\lib\mteFunctions.pas" set hasMTEFunctions=1
- echo :
- echo :
- echo ::: "Ruddy88's ESLify Utility" :::
- echo ::: "Utilitaire ESLify de Ruddy88" :::
- echo :
- echo :
- echo ::: Checking for required files :::
- echo ::: Vérification des fichiers requis :::
- echo :
- echo :
- for /f "delims=" %%v in ('powershell "(Get-Item '%pathSSEEdit404%' -ErrorAction SilentlyContinue).VersionInfo.ProductVersion"') do (
- set "verSSEEdit404=[1;34m%%v[0m"
- )
- for /f "delims=" %%v in ('powershell "(Get-Item '%pathSSEEdit%' -ErrorAction SilentlyContinue).VersionInfo.ProductVersion"') do (
- set "verSSEEdit=[1;34m%%v[0m"
- )
- echo %verSSEEdit404%
- if not defined verSSEEdit404 (
- echo ::: Unable to retrieve SSEEdit version, rename SSEedit.exe 4.0.4 to SSEedit404.exe and place it in %pathSSEEdit% with the other binaries.
- echo ::: Impossible de récupérer la version de SSEEdit, renommer SSEedit.exe 4.0.4 en SSEedit404.exe et placez le dans %pathSSEEdit% avec les autres binaires.
- pause
- ) else (
- if "%verSSEEdit404%" neq "4.0.4.0" (
- goto :launch
- ) else (
- echo ::: Wrong version of SSEEdit, rename SSEedit.exe 4.0.4 to SSEedit404.exe and place it in %pathSSEEdit% with the other binaries.
- echo ::: Mauvaise version de SSEEdit, renommer SSEedit.exe 4.0.4 en SSEedit404.exe et placez le dans %pathSSEEdit% avec les autres binaires.
- pause
- )
- )
- IF %hasSSEEdit%==1 (
- echo ::: SSEEdit found
- echo ::: SSEEdit trouvé
- )
- IF %hasAnyEdit%==0 (
- echo ::: WARNING: XEdit/SSEEdit404.exe not found
- echo ::: Avertissement: XEdit/SSEEdit404.exe introuvable
- )
- IF %hasESLifyScript%==1 (
- echo ::: R88_ESLify.pas found
- ) ELSE (
- echo ::: WARNING: R88_ESLify.pas not found
- echo ::: Avertissement: R88_ESLify.pas introuvable
- )
- IF %hasMXPF%==1 (
- echo ::: mxpf.pas found
- ) ELSE (
- echo ::: WARNING: mxpf.pas not found
- echo ::: Avertissement: mxpf.pas introuvable
- )
- IF %hasMTEFunctions%==1 (
- echo ::: mteFunctions.pas found
- ) ELSE (
- echo ::: WARNING: mteFunctions.pas not found
- echo ::: Avertissement: mteFunctions.pas introuvable
- )
- IF %hasAnyEdit%==1 IF %hasESLifyScript%==1 IF %hasMXPF%==1 IF %hasMTEFunctions%==1 set hasRequiredFiles=1
- IF %hasRequiredFiles%==1 (
- echo :
- echo :
- echo ::: All required files installed.
- echo ::: Tous les fichiers requis installés.
- echo :
- echo :
- %game%
- ) ELSE (
- echo :
- echo :
- echo ::: Required files not found. Terminating process.echo
- echo ::: Fichiers requis introuvables. Terminer le processus.
- echo :
- echo :
- pause
- exit
- )
- :runPatchSSE
- echo :
- echo :
- echo ::: Skyrim SE auto selected...
- echo ::: Skyrim SE auto seléctionné...
- echo :
- echo :
- echo ::: Launching ESLify script...
- echo ::: Lancement du script ESLify ...
- echo :
- echo :
- IF %hasSSEEdit%==1 (
- start SSEEdit404.exe -nobuildrefs -autoload -pseudoESL -script:"R88_ESLify.pas"
- ) ELSE (
- echo :
- echo :
- echo ::: Unexpected Error. Terminating process.
- echo ::: Erreur inattendue. Terminer le processus.
- echo :
- echo :
- pause
- exit
- )
- goto :exitPatch
- :exitPatch
- endlocal
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement