mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-13 23:52:23 +00:00
feat: autofill emulator info even not used
This commit is contained in:
@@ -82,6 +82,10 @@ class Device(Screenshot, Control, AppControl, Platform):
|
|||||||
)
|
)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
# Auto-fill emulator info
|
||||||
|
if self.config.EmulatorInfo_Emulator == 'auto':
|
||||||
|
_ = self.emulator_instance
|
||||||
|
|
||||||
self.screenshot_interval_set()
|
self.screenshot_interval_set()
|
||||||
|
|
||||||
# Auto-select the fastest screenshot method
|
# Auto-select the fastest screenshot method
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ import typing as t
|
|||||||
import winreg
|
import winreg
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
from module.device.platform.emulator_base import EmulatorBase, EmulatorInstanceBase, EmulatorManagerBase
|
|
||||||
# module/device/platform/emulator_base.py
|
# module/device/platform/emulator_base.py
|
||||||
# module/device/platform/emulator_windows.py
|
# module/device/platform/emulator_windows.py
|
||||||
# Will be used in Alas Easy Install, they shouldn't import any Alas modules.
|
# Will be used in Alas Easy Install, they shouldn't import any Alas modules.
|
||||||
|
from module.device.platform.emulator_base import EmulatorBase, EmulatorInstanceBase, EmulatorManagerBase
|
||||||
from module.device.platform.utils import cached_property, iter_folder
|
from module.device.platform.utils import cached_property, iter_folder
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
import sys
|
import sys
|
||||||
import typing as t
|
import typing as t
|
||||||
|
|
||||||
import yaml
|
from pydantic import BaseModel
|
||||||
from pydantic import BaseModel, SecretStr
|
|
||||||
|
|
||||||
from module.base.decorator import cached_property, del_cached_property
|
from module.base.decorator import cached_property, del_cached_property
|
||||||
|
from module.base.utils import SelectedGrids
|
||||||
from module.device.connection import Connection
|
from module.device.connection import Connection
|
||||||
from module.device.platform.emulator_base import EmulatorInstanceBase, EmulatorManagerBase
|
from module.device.platform.emulator_base import EmulatorInstanceBase, EmulatorManagerBase
|
||||||
from module.logger import logger
|
from module.logger import logger
|
||||||
from module.base.utils import SelectedGrids
|
|
||||||
|
|
||||||
|
|
||||||
class EmulatorInfo(BaseModel):
|
class EmulatorInfo(BaseModel):
|
||||||
|
|||||||
@@ -317,4 +317,5 @@ class PlatformWindows(PlatformBase, EmulatorManager):
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
self = PlatformWindows('alas')
|
self = PlatformWindows('alas')
|
||||||
self.emulator_start()
|
d = self.emulator_instance
|
||||||
|
print(d)
|
||||||
|
|||||||
Reference in New Issue
Block a user