mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-22 15:13:45 +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:
6
alas.bat
6
alas.bat
@@ -928,6 +928,10 @@ if "%FirstRun%"=="yes" (
|
|||||||
set FirstRun=no
|
set FirstRun=no
|
||||||
call command\Config.bat FirstRun %FirstRun%
|
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" (
|
if "%GUI%"=="EN" (
|
||||||
call command\ConfigAlas.bat SerialAlas %SerialRealtime%
|
call command\ConfigAlas.bat SerialAlas %SerialRealtime%
|
||||||
call command\ConfigAlas.bat AzurLanePackage com.YoStarEN.AzurLane
|
call command\ConfigAlas.bat AzurLanePackage com.YoStarEN.AzurLane
|
||||||
@@ -936,6 +940,8 @@ if "%GUI%"=="EN" (
|
|||||||
call command\ConfigAlas.bat SerialAlas %SerialRealtime%
|
call command\ConfigAlas.bat SerialAlas %SerialRealtime%
|
||||||
call command\Config.bat Serial %SerialRealtime%
|
call command\Config.bat Serial %SerialRealtime%
|
||||||
)
|
)
|
||||||
|
:ShowSerial
|
||||||
|
for %%i in (*.) do if not "%%i"=="LICENSE" del /q "%%i"
|
||||||
echo =======================================================================================================================
|
echo =======================================================================================================================
|
||||||
echo == ^| Old Serial: %SerialAlas%
|
echo == ^| Old Serial: %SerialAlas%
|
||||||
echo == ^| New Serial: %SerialRealtime%
|
echo == ^| New Serial: %SerialRealtime%
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ call command\LanguageSet.bat
|
|||||||
if exist config\alas.ini (
|
if exist config\alas.ini (
|
||||||
for /f "tokens=3 delims= " %%i in ('findstr /i "github_token" config\alas.ini') do ( set "GithubToken=%%i" )
|
for /f "tokens=3 delims= " %%i in ('findstr /i "github_token" config\alas.ini') do ( set "GithubToken=%%i" )
|
||||||
for /f "tokens=3 delims= " %%i in ('findstr /i "serial" config\alas.ini') do ( set "SerialAlas=%%i" )
|
for /f "tokens=3 delims= " %%i in ('findstr /i "serial" config\alas.ini') do ( set "SerialAlas=%%i" )
|
||||||
|
for /f "tokens=3 delims= " %%i in ('findstr /i "package_name" config\alas.ini') do ( set "PackageName=%%i" )
|
||||||
)
|
)
|
||||||
if exist config\template.ini (
|
if exist config\template.ini (
|
||||||
for /f "tokens=3 delims= " %%i in ('findstr /i "serial" config\template.ini') do ( set "SerialTemplate=%%i" )
|
for /f "tokens=3 delims= " %%i in ('findstr /i "serial" config\template.ini') do ( set "SerialTemplate=%%i" )
|
||||||
|
|||||||
Reference in New Issue
Block a user