feat: add a modal to select game installation folder (pt and en translation)

This commit is contained in:
shadowtosser 2024-04-20 15:54:08 -03:00
parent d9056ff0d6
commit cacc4ca57a
13 changed files with 1232 additions and 24 deletions

View file

@ -138,12 +138,16 @@ export function GameDetails() {
};
}, [game?.id, isGamePlaying, getGame]);
const handleStartDownload = async (repackId: number) => {
const handleStartDownload = async (
repackId: number,
downloadPath: string
) => {
return startDownload(
repackId,
gameDetails.objectID,
gameDetails.name,
shop as GameShop
shop as GameShop,
downloadPath
).then(() => {
getGame();
setShowRepacksModal(false);