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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user