def isloadingstarted(self):
if not self.stopThread:
if dt.timestamp(dt.now()) - os.stat(
self.LOGPATH + max([f for f in os.listdir(self.LOGPATH)])).st_ctime < 10:
try:
log.info("start loadingscreen")
self.launcher.startLS()
except Riot.LoLException:
self.stopThread = True
else:
self.status("loading started")
QtCore.QTimer().singleShot(1000, self.isgamestarted)
else:
QtCore.QTimer().singleShot(1000, self.isloadingstarted)
else:
log.info("Leaguestate closed")
评论列表
文章目录