mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-08 12:27:33 +08:00
Fix: Skip first screenshot in tools
since you cannot run benchmark before benckmarked
This commit is contained in:
parent
24aa3e00bd
commit
f810db8bea
5
alas.py
5
alas.py
@ -62,9 +62,10 @@ class AzurLaneAutoScript:
|
||||
logger.exception(e)
|
||||
exit(1)
|
||||
|
||||
def run(self, command):
|
||||
def run(self, command, skip_first_screenshot=False):
|
||||
try:
|
||||
self.device.screenshot()
|
||||
if not skip_first_screenshot:
|
||||
self.device.screenshot()
|
||||
self.__getattribute__(command)()
|
||||
return True
|
||||
except TaskEnd:
|
||||
|
@ -153,7 +153,7 @@ class ProcessManager:
|
||||
elif func in get_available_func():
|
||||
from alas import AzurLaneAutoScript
|
||||
|
||||
AzurLaneAutoScript(config_name=config_name).run(inflection.underscore(func))
|
||||
AzurLaneAutoScript(config_name=config_name).run(inflection.underscore(func), skip_first_screenshot=True)
|
||||
elif func in get_available_mod():
|
||||
mod = load_mod(func)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user