From e3f61bbaa86f2bd03efed73062614cca49897c82 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Thu, 10 Oct 2024 00:33:16 +0100 Subject: [PATCH] fix: fixing games with : --- src/main/events/cloud-save/download-game-artifact.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/events/cloud-save/download-game-artifact.ts b/src/main/events/cloud-save/download-game-artifact.ts index 00fae6aa..ef00629b 100644 --- a/src/main/events/cloud-save/download-game-artifact.ts +++ b/src/main/events/cloud-save/download-game-artifact.ts @@ -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(