Merge branch 'main' into linux-install

This commit is contained in:
Daniel Freitas 2024-05-12 10:23:42 -03:00 committed by GitHub
commit ac18b5388a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
98 changed files with 2317 additions and 1243 deletions

View file

@ -13,13 +13,15 @@ const openGameInstaller = async (
_event: Electron.IpcMainInvokeEvent,
gameId: number
) => {
const game = await gameRepository.findOne({ where: { id: gameId } });
const game = await gameRepository.findOne({
where: { id: gameId, isDeleted: false },
});
if (!game || !game.folderName) return true;
let gamePath = path.join(
game.downloadPath ?? (await getDownloadsPath()),
game.folderName
game.folderName!
);
if (!fs.existsSync(gamePath)) {