def __init__(self, reader, writer, token):
     super().__init__(Platform.Minecraft, __version__, reader, writer,
                      token)
     self.local_client = LocalClient()
     self.minecraft_launcher = None
     self.minecraft_uninstall_command = None
     self.minecraft_installation_status = LocalGameState.None_
     self.minecraft_running_check = None
     self.tick_count = 0
 def __init__(self, reader, writer, token):
     super().__init__(
         Platform.RiotGames,  # choose platform from available list
         __version__,  # version
         reader,
         writer,
         token,
     )
     self.local_client = LocalClient()
     self.status = dict.fromkeys(GAME_IDS, LocalGameState.None_)
     self._update_task = None
Пример #3
0
 def __init__(self, reader, writer, token):
     super().__init__(Platform.Uplay, __version__, reader, writer, token)
     self.client = BackendClient(self)
     self.local_client = LocalClient()
     self.cached_game_statuses = {}
     self.games_collection = GamesCollection()
     self.process_watcher = ProcessWatcher()
     self.game_status_notifier = GameStatusNotifier(self.process_watcher)
     self.tick_count = 0
     self.updating_games = False
     self.owned_games_sent = False
     self.parsing_club_games = False
Пример #4
0
    def __init__(self, reader, writer, token):
        super().__init__(Platform.Bethesda, __version__, reader, writer, token)
        self._http_client = AuthenticatedHttpClient(self.store_credentials)
        self.bethesda_client = BethesdaClient(self._http_client)
        self.local_client = LocalClient()
        self.products_cache = product_cache
        self.owned_games_cache = None

        self._asked_for_local = False

        self.update_game_running_status_task = None
        self.update_game_installation_status_task = None
        self.check_for_new_games_task = None
        self.running_games = {}
        self.launching_lock = None
Пример #5
0
 def __init__(self, reader, writer, token):
     super().__init__(Platform.RiotGames, __version__, reader, writer, token)
     self.games_cache = games_cache
     self._http_client = AuthenticatedHttpClient(self.store_credentials)
     self._local_client = LocalClient()
     self.total_games_cache = self.create_total_games_cache()
     self.friends_cache = []
     self.owned_games_cache = []
     self.local_games_cache = []
     self.running_games_pids = {}
     self.game_is_loading = True
     self.checking_for_new_games = False
     self.updating_game_statuses = False
     self.buffer = ctypes.create_unicode_buffer(ctypes.wintypes.MAX_PATH)
     ctypes.windll.shell32.SHGetFolderPathW(None, 5, None, 0, self.buffer)
     self.documents_location = self.buffer.value
    def __init__(self, reader, writer, token):
        super().__init__(Platform.ParadoxPlaza, __version__, reader, writer,
                         token)
        self._http_client = AuthenticatedHttpClient(self.store_credentials)
        self.paradox_client = ParadoxClient(self._http_client)
        self.local_client = LocalClient()
        self.owned_games_cache = None

        self.local_games_cache = {}
        self.running_game = None

        self.tick_counter = 0

        self.local_games_called = None
        self.owned_games_called = None

        self.update_installed_games_task = None
        self.update_running_games_task = None
        self.update_owned_games_task = None
Пример #7
0
 def __init__(self, reader, writer, token):
     super().__init__(Platform.Rockstar, __version__, reader, writer, token)
     self.games_cache = games_cache
     self._http_client = BackendClient(self.store_credentials)
     self._local_client = None
     self.total_games_cache = self.create_total_games_cache()
     self.friends_cache = []
     self.presence_cache = {}
     self.owned_games_cache = []
     self.last_online_game_check = time() - 300
     self.local_games_cache = {}
     self.game_time_cache = {}
     self.running_games_info_list = {}
     self.game_is_loading = True
     self.checking_for_new_games = False
     self.updating_game_statuses = False
     self.buffer = None
     if IS_WINDOWS:
         self._local_client = LocalClient()
         self.buffer = ctypes.create_unicode_buffer(ctypes.wintypes.MAX_PATH)
         ctypes.windll.shell32.SHGetFolderPathW(None, 5, None, 0, self.buffer)
         self.documents_location = self.buffer.value
Пример #8
0
 def __init__(self, reader, writer, token):
     super().__init__(Platform(manifest['platform']), manifest['version'],
                      reader, writer, token)
     self._api = ApiClient(self.store_credentials, self.lost_authentication)
     self._local = LocalClient()