1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-15 01:19:25 +08:00

Opt: restart u2 after GGStatus checked and before GG is set on to avoid U2 dies when using LDPlayer.

This commit is contained in:
Zuosizhu
2023-03-29 23:20:55 +08:00
parent f8abdd7e5a
commit df1fcba2f8
2 changed files with 18 additions and 6 deletions

View File

@@ -142,19 +142,20 @@ class LoginHandler(UI):
raise GameStuckError
def app_stop(self):
GGHandler(config=self.config, device=self.device).handle_u2_restart()
logger.hr('App stop')
self.device.app_stop()
def app_start(self):
GGHandler(config=self.config, device=self.device).handle_u2_restart()
logger.hr('App start')
GGHandler(config=self.config, device=self.device).handle_before_restart()
self.device.app_start()
self.handle_app_login()
# self.ensure_no_unfinished_campaign()
def app_restart(self):
GGHandler(config=self.config, device=self.device).handle_u2_restart()
logger.hr('App restart')
GGHandler(config=self.config, device=self.device).handle_before_restart()
self.device.app_stop()
self.device.app_start()
self.handle_app_login()