chore: improve the download code

This commit is contained in:
2024-06-07 18:59:55 +07:00
parent 2477ed1a06
commit 19ce16f095
2 changed files with 5 additions and 8 deletions

View File

@ -169,7 +169,8 @@ class UI:
return
await self.download_game()
print("Game archive:", game.latest.get_name())
await self._install_from_archive(self._installer.temp_path.joinpath(game.latest.get_name()), forced)
# I'm too lazy to properly fix things so here we are :D
await self._install_from_archive(self._installer.temp_path.joinpath(game.latest.segments[0]["path"].split("/")[-1]), forced)
async def install_voiceover(self, languages: str):
res_info = await self._launcher.get_resource_info()