def __init__(self, reader, writer, token): self._http_client: Optional[PoeHttpClient] = None self._install_path: Optional[str] = self._get_install_path() if is_windows() else None self._game_state: LocalGameState = self._get_game_state() if is_windows() else None self._manifest = self._read_manifest() self._achievements_cache: Dict[AchievementName, Timestamp] = {} super().__init__(Platform(self._manifest["platform"]), self._manifest["version"], reader, writer, token)
def __init__(self, reader, writer, token): self.manifest_data = utils.get_manifest() self.config_data = utils.get_config() super().__init__(Platform(self.manifest_data['platform']), self.manifest_data['version'], reader, writer, token) self.games: List[utils.DolphinGame] = []
def __init__(self, reader, writer, token): self._manifest = self._read_manifest() self._launcher_client = TwitchLauncherClient() self._owned_games_cache: Dict[str, Game] = {} self._local_games_cache: Dict[str, InstalledGame] = {} super().__init__(Platform(self._manifest["platform"]), self._manifest["version"], reader, writer, token)
def __init__(self, reader, writer, token): super().__init__(Platform(manifest['platform']), manifest['version'], reader, writer, token) self._wgc = WGC() self._xmpp = dict() #intialized flag self.__handshake_completed = False self.__localgames_imported = False #time tracker self.__gametime_tracker = None self.__task_check_for_instances_obj = None self.__local_games_states = dict() self.__local_applications = dict() self.__platform = get_platform()
def __init__(self, reader, writer, token): self.configuration = DefaultConfig() super().__init__( Platform(self.configuration.my_platform_to_gog ), # choose platform from available list "0.1", # version reader, writer, token) self.backend = Backend() self.my_library_thread = None self.my_library_started = False self.my_threads = [] self.my_tasks = [] self.started_async_tick = False self.keep_ticking = True if (self.configuration.minimize_logging): logging.getLogger().setLevel(logging.WARNING) else: logging.getLogger().setLevel(logging.DEBUG)
def __init__(self, reader, writer, token): super().__init__(Platform(manifest['platform']), manifest['version'], reader, writer, token) self.__logger = logging.getLogger('plugin') self._gw2_api = gw2.gw2_api.GW2API(manifest['version']) self._game_instances = None self.__task_check_for_achievements = None self.__task_check_for_instances = None self._task_check_for_running = None self._last_state = LocalGameState.None_ self.__imported_achievements = None self.__platform = get_platform() self.__achievements_db = None try: with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "gw2/db/achievements.json"), mode="r", encoding="utf-8") as f: self.__achievements_db = json.load(f) except Exception: self.__logger.exception('__init__: failed to read achievements info DB')
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()
from galaxy.api.consts import LicenseType, Platform from galaxy.api.types import LicenseInfo, Game platform = Platform("Escape from Tarkov") game = Game('escapefromtarkov', 'Escape from Tarkov', None, LicenseInfo(LicenseType.SinglePurchase)) def game_is_owned(): return True def launch_game(): print("Launching game!")