fix: fixing games with :

This commit is contained in:
Chubby Granny Chaser 2024-10-10 00:33:16 +01:00
parent 446b03eeff
commit e3f61bbaa8
No known key found for this signature in database

View File

@ -125,7 +125,11 @@ const downloadGameArtifact = async (
const [game] = await Ludusavi.findGames(shop, objectId);
if (!game) throw new Error("Game not found in Ludusavi manifest");
replaceLudusaviBackupWithCurrentUser(backupPath, game, homeDir);
replaceLudusaviBackupWithCurrentUser(
backupPath,
game.replaceAll(":", "_"),
normalizePath(homeDir)
);
Ludusavi.restoreBackup(backupPath).then(() => {
WindowManager.mainWindow?.webContents.send(