mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
Merge branch 'feature/cloud-sync' into feature/game-achievements
This commit is contained in:
commit
3dcdcae9a7
@ -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(
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user