mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-30 14:21:04 +00:00
feat: refactoring achievements watcher
This commit is contained in:
@@ -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);
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user