1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-18 23:29:30 +08:00

update gg

This commit is contained in:
MengNianxiaoyao
2023-01-27 16:47:16 +08:00
parent 8f010a0b24
commit bfa2e13dc7
5 changed files with 46 additions and 40 deletions

View File

@@ -12,6 +12,7 @@ class GGXpath(Base):
def __init__(self, config, device):
self.config = config
self.device = device
u2.connect(self.config.Emulator_Serial).reset_uiautomator()
self.d = u2.connect(self.config.Emulator_Serial)
self.gg_package_name = deep_get(self.config.data, keys='GameManager.GGHandler.GGPackageName')
self.d.wait_timeout = 10.0
@@ -162,4 +163,4 @@ class GGXpath(Base):
return 0
logger.hr('GG Enabled', level=2)
self.d.app_stop(self.gg_package_name)
return 1
return 1