bat文件:
@璐村惂鐢ㄦ埛_000076K馃惥 off
set "DST_DIR=E:\Games\EnterTheGungeon\backup"
set "SRC_DIR=C:\Users\AAA\AppData\LocalLow\Dodge Roll\Enter the Gungeon"
set "DST_REG_FILE=%DST_DIR%\ETG.reg"
set "DST_SAVE_FILE_DIR=%DST_DIR%\savefiles\"set "SRC_ALL=%SRC_DIR%\*"
echo choose %~1
if %~1 == backup (
echo start backup
echo export reg
reg export "hkcu\Software\Dodge Roll\Enter the Gungeon" "%DST_REG_FILE%" /y
echo backup savefiles
del /q "%DST_SAVE_FILE_DIR%*"
copy /y "%SRC_DIR%" "%DST_SAVE_FILE_DIR%"
echo backup completed
)
if %~1 == restore (
echo start restore
echo import reg
reg import "%DST_REG_FILE%"
echo restore savefiles
del /q "%SRC_DIR%"
del /q "%DST_SAVE_FILE_DIR%SlotA.backup.*"
copy /y "%DST_SAVE_FILE_DIR%*" "%SRC_DIR%"
echo restore completed
)
pause