feat: refactoring achievements watcher

This commit is contained in:
Zamitto
2024-10-01 22:21:41 -03:00
parent c18c41ac95
commit 44e59a5f6f
12 changed files with 120 additions and 57 deletions

View File

@@ -1,11 +0,0 @@
import { registerEvent } from "../register-event";
import { updateLocalUnlockedAchivements } from "@main/services/achievements/update-local-unlocked-achivements";
const updateGameUnlockedAchievements = async (
_event: Electron.IpcMainInvokeEvent,
objectId: string
) => {
return updateLocalUnlockedAchivements(false, objectId);
};
registerEvent("updateGameUnlockedAchievements", updateGameUnlockedAchievements);

View File

@@ -10,7 +10,6 @@ import "./catalogue/search-games";
import "./catalogue/get-game-stats";
import "./catalogue/get-trending-games";
import "./catalogue/get-game-achievements";
import "./catalogue/update-game-unlocked-achievements";
import "./hardware/get-disk-free-space";
import "./library/add-game-to-library";
import "./library/create-game-shortcut";