Merge branch 'feature/cloud-sync' into feature/game-achievements

This commit is contained in:
Zamitto 2024-10-09 21:26:51 -03:00
commit 3dcdcae9a7
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -133,6 +133,7 @@ export function Achievement() {
src={ src={
achievement.unlocked ? achievement.icon : achievement.icongray achievement.unlocked ? achievement.icon : achievement.icongray
} }
alt={achievement.displayName}
loading="lazy" loading="lazy"
/> />
<div> <div>