1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-23 20:15:57 +08:00

Opt: Added checking if the Serial in real time has been changed

- if False this step will be skipped to avoid rewrite alas.ini with no reason, this change its only for Bluestacks Hyper-V users.
This commit is contained in:
whoamikyo
2021-03-03 00:48:01 -03:00
parent 30f4459267
commit 46a5cefd41
2 changed files with 7 additions and 0 deletions

View File

@@ -928,6 +928,10 @@ if "%FirstRun%"=="yes" (
set FirstRun=no
call command\Config.bat FirstRun %FirstRun%
)
if "%SerialRealtime%"=="%SerialAlas%" if "%PackageName%"=="com.YoStarEN.AzurLane" if "%GUI%"=="EN" (
echo == ^| The serial has not been changed since the last time
goto ShowSerial
)
if "%GUI%"=="EN" (
call command\ConfigAlas.bat SerialAlas %SerialRealtime%
call command\ConfigAlas.bat AzurLanePackage com.YoStarEN.AzurLane
@@ -936,6 +940,8 @@ if "%GUI%"=="EN" (
call command\ConfigAlas.bat SerialAlas %SerialRealtime%
call command\Config.bat Serial %SerialRealtime%
)
:ShowSerial
for %%i in (*.) do if not "%%i"=="LICENSE" del /q "%%i"
echo =======================================================================================================================
echo == ^| Old Serial: %SerialAlas%
echo == ^| New Serial: %SerialRealtime%