Ejemplo n.º 1
0
 def game_path(self):
     appid = self.game_config.get('appid')
     for apps_path in self.get_steamapps_dirs():
         game_path = get_path_from_appmanifest(apps_path, appid)
         if game_path:
             return game_path
     logger.warning("Data path for SteamApp %s not found.", appid)
Ejemplo n.º 2
0
 def get_game_path_from_appid(self, appid):
     """Return the game directory"""
     for apps_path in self.get_steamapps_dirs():
         game_path = get_path_from_appmanifest(apps_path, appid)
         if game_path:
             return game_path
     logger.warning("Data path for SteamApp %s not found.", appid)
Ejemplo n.º 3
0
 def game_path(self):
     appid = self.game_config.get('appid')
     for apps_path in self.get_steamapps_dirs():
         game_path = get_path_from_appmanifest(apps_path, appid)
         if game_path:
             return game_path
     logger.warning("Data path for SteamApp %s not found.", appid)
Ejemplo n.º 4
0
 def get_game_path_from_appid(self, appid):
     """Return the game directory."""
     for apps_path in self.get_steamapps_dirs():
         game_path = get_path_from_appmanifest(apps_path, appid)
         if game_path:
             return game_path
     logger.warning("Data path for SteamApp %s not found.", appid)
Ejemplo n.º 5
0
 def get_game_data_path(self, appid):
     data_path = get_path_from_appmanifest(self.steam_data_dir, appid)
     if not data_path:
         steam_config = self.get_steam_config()
         data_path = get_path_from_config(steam_config, appid)
     if not data_path:
         logger.warning("Data path for SteamApp %s not found.", appid)
     return data_path
Ejemplo n.º 6
0
 def get_game_data_path(self, appid):
     data_path = get_path_from_appmanifest(self.steam_data_dir, appid)
     if not data_path:
         steam_config = self.get_steam_config()
         data_path = get_path_from_config(steam_config, appid)
     if not data_path:
         logger.warning("Data path for SteamApp %s not found.", appid)
     return data_path
Ejemplo n.º 7
0
 def game_path(self):
     if not self.appid:
         return
     for apps_path in self.get_steamapps_dirs():
         game_path = get_path_from_appmanifest(apps_path, self.appid)
         if game_path:
             return game_path
     logger.warning("Data path for SteamApp %s not found.", self.appid)