Install and execute games exposed by the configured Termux repositories. More...
Public Member Functions | |
| str | backend_id (self) |
| Return the stable identifier used for persistent inventory entries. | |
| bool | is_available (self, GameDefinition game) |
| Return whether this environment can install a game. | |
| bool | is_installed (self, GameDefinition game) |
| Return whether the game's executable is available in Termux. | |
| None | install (self, GameDefinition game) |
| Install a game or raise an exception on failure. | |
| Sequence[str] | launch_command (self, GameDefinition game) |
| Return the direct Termux command for game. | |
Public Member Functions inherited from games.game_installer_if.GameInstallerIf | |
| tuple[str|None, str|None] | window_selectors (self, GameDefinition game) |
| Return backend-specific X11 window selectors when needed. | |
| bool | relax_window_size_hints (self, GameDefinition game) |
| Return whether the embedding backend may ignore application size hints. | |
Static Public Member Functions | |
| bool | supported () |
| Return whether the current runtime looks like Termux. | |
Protected Member Functions | |
| set[str] | _load_available_packages (self) |
| Load the Termux package index once instead of spawning apt-cache per game. | |
Install and execute games exposed by the configured Termux repositories.
| str games.termux_game_installer.TermuxGameInstaller.backend_id | ( | self | ) |
Return the stable identifier used for persistent inventory entries.
Reimplemented from games.game_installer_if.GameInstallerIf.
| None games.termux_game_installer.TermuxGameInstaller.install | ( | self, | |
| GameDefinition | game | ||
| ) |
Install a game or raise an exception on failure.
| game | Configured game definition to install. |
Reimplemented from games.game_installer_if.GameInstallerIf.
| bool games.termux_game_installer.TermuxGameInstaller.is_available | ( | self, | |
| GameDefinition | game | ||
| ) |
Return whether this environment can install a game.
| game | Configured game definition to query. |
Reimplemented from games.game_installer_if.GameInstallerIf.