mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Skip first screenshot in tools
since you cannot run benchmark before benckmarked
This commit is contained in:
parent
24aa3e00bd
commit
f810db8bea
3
alas.py
3
alas.py
@ -62,8 +62,9 @@ class AzurLaneAutoScript:
|
||||
logger.exception(e)
|
||||
exit(1)
|
||||
|
||||
def run(self, command):
|
||||
def run(self, command, skip_first_screenshot=False):
|
||||
try:
|
||||
if not skip_first_screenshot:
|
||||
self.device.screenshot()
|
||||
self.__getattribute__(command)()
|
||||
return True
|
||||
|
||||
@ -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