|
|
转自n网:https://www.nexusmods.com/eldenringnightreign/mods/191
This script disables EAC when launching, and afterwards after a keypress reverts it back to the original.
该脚本在启动时禁用 EAC,按键后恢复原来的 EAC。
@echo off @echo
setlocal
title EonaCat Elden Ring - Nightreign EAC Swap
标题:EonaCat 艾尔登法环 - 夜之统治 EAC 交换
REM === Configuration ===
REM === 配置 ===
set ORIGINAL=start_protected_game.exe
原始集=start_protected_game.exe
set BACKUP=start_protected_game_original.exe
设置备份=start_protected_game_original.exe
set NIGHTREIGN=nightreign.exe
NIGHTREIGN=nightreign.exe
REM === Step 1: Rename start_protected_game to backup ===
REM === 步骤 1:将 start_protected_game 重命名为备份 ===
if exist "%ORIGINAL%" ( 如果存在,则“%ORIGINAL%” (
ren "%ORIGINAL%" "%BACKUP%"
任 “%ORIGINAL%” “%BACKUP%”
echo Renamed %ORIGINAL% to %BACKUP%
回声重命名 %ORIGINAL% 为 %BACKUP%
) else ( 否则 (
echo ERROR: %ORIGINAL% not found!
回声错误:%原始未找到!
goto :EOF 去吧 :EOF
)
REM === Step 2: Rename Nightreign exe to start_protected_game ===
REM === 步骤 2:将 Nightreign exe 重命名为 start_protected_game ===
if exist "%NIGHTREIGN%" (
如果存在,则“%NIGHTREIGN%” (
ren "%NIGHTREIGN%" "%ORIGINAL%"
任 “%夜行%” “%原始%”
echo Renamed %NIGHTREIGN% to %ORIGINAL%
回声 改名为 %NIGHTREIGN% 为 %ORIGINAL%
) else ( 否则 (
echo ERROR: %NIGHTREIGN% not found!
回声错误:%夜王统治% 未找到!
goto :REVERT 去 :还原
)
REM === Step 3: Run the new start_protected_game ===
REM === 第三步:运行新 start_protected_game ===
echo Running %ORIGINAL%...
回声运行 %原始%...
start "" "%ORIGINAL%" 开始 “” “%ORIGINAL%”
REM === Step 4: Wait for user to revert ===
REM === 步骤 4:等待用户恢复 ===
echo. 回声。
echo =========================================
回声=========================================
echo Press any key when ready to revert files.
回声:准备还原文件时按任意键。
echo =========================================
回声=========================================
pause >nul 暂停>无
:REVERT :还原
REM === Step 5: Revert the renaming process ===
REM === 步骤 5:逆转重命名过程 ===
if exist "%ORIGINAL%" ( 如果存在,则“%ORIGINAL%” (
ren "%ORIGINAL%" "%NIGHTREIGN%"
任 “%原创%” “%夜王%”
echo Reverted %ORIGINAL% to %NIGHTREIGN%
回声 恢复 %ORIGINAL% 为 %NIGHTREIGN%
)
if exist "%BACKUP%" ( 如果存在,则“%BACKUP%” (
ren "%BACKUP%" "%ORIGINAL%"
任 “%BACKUP%” “%ORIGINAL%”
echo Restored original %ORIGINAL% from backup
回声 从备份中恢复了原始 %ORIGINAL%
)
endlocal
You do not need to download anything, just create a batch file and add the script.
你不需要下载任何东西,只需创建一个批处理文件并添加脚本即可。
Place the batch file in your Elden Ring NightReign folder
把批处理文件放到你的《艾尔登法环:夜王》文件夹里
|
|