mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-02 08:24:07 +08:00
Opt: added auto config backup when run alas.bat
This commit is contained in:
4
alas.bat
4
alas.bat
@@ -488,7 +488,7 @@ rem ================= EMULATOR SETUP MENU =================
|
|||||||
:Emulator_Setup
|
:Emulator_Setup
|
||||||
cls
|
cls
|
||||||
if NOT exist config\alas.ini (
|
if NOT exist config\alas.ini (
|
||||||
echo f | xcopy config\template.ini config\alas.ini
|
echo f | xcopy config\template.ini config\alas.ini > nul
|
||||||
)
|
)
|
||||||
echo ====================================================================================================
|
echo ====================================================================================================
|
||||||
echo == It seems like this is the first time that you run this program
|
echo == It seems like this is the first time that you run this program
|
||||||
@@ -801,7 +801,7 @@ if "%KillServer%"=="enable" (
|
|||||||
%adbBin% kill-server > nul 2>&1
|
%adbBin% kill-server > nul 2>&1
|
||||||
)
|
)
|
||||||
echo == connecting at %SerialRealtime%
|
echo == connecting at %SerialRealtime%
|
||||||
%adbBin% connect %SerialRealtime%
|
%adbBin% connect %SerialRealtime% > nul
|
||||||
if "%FirstRun%"=="yes" (
|
if "%FirstRun%"=="yes" (
|
||||||
call command\Config.bat Serial %SerialRealtime%
|
call command\Config.bat Serial %SerialRealtime%
|
||||||
call command\ConfigTemplate.bat SerialTemplate %SerialRealtime%
|
call command\ConfigTemplate.bat SerialTemplate %SerialRealtime%
|
||||||
|
|||||||
@@ -18,6 +18,9 @@ rem ================= FUNCTIONS =================
|
|||||||
:: Get %Language% , %Region% , %SystemType%
|
:: Get %Language% , %Region% , %SystemType%
|
||||||
:Import_Main
|
:Import_Main
|
||||||
:: 1. Get customized %Language%, or decided by "LanguageSelector"
|
:: 1. Get customized %Language%, or decided by "LanguageSelector"
|
||||||
|
if exist config\alas.ini (
|
||||||
|
echo f | xcopy /y config\alas.ini config\alas.ini.backup > nul
|
||||||
|
)
|
||||||
call command\SystemSet.bat
|
call command\SystemSet.bat
|
||||||
call command\LanguageSet.bat
|
call command\LanguageSet.bat
|
||||||
if exist config\alas.ini (
|
if exist config\alas.ini (
|
||||||
|
|||||||
Reference in New Issue
Block a user