mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
Merge branch 'feature/cloud-sync' into feature/game-achievements
This commit is contained in:
commit
3dcdcae9a7
2 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue