feat: game session start time stamp

This commit is contained in:
Zamitto
2024-06-19 22:05:22 -03:00
parent 800e99fda0
commit 188fe4537a
9 changed files with 45 additions and 34 deletions

View File

@@ -14,6 +14,7 @@ import type {
RealDebridUser,
DownloadSource,
UserProfile,
RunningGameEvent,
} from "@types";
import type { DiskSpace } from "check-disk-space";
@@ -71,8 +72,8 @@ declare global {
removeGame: (gameId: number) => Promise<void>;
deleteGameFolder: (gameId: number) => Promise<unknown>;
getGameByObjectID: (objectID: string) => Promise<Game | null>;
onGamesRunning: (
cb: (gamesId: number[]) => void
onRunningGames: (
cb: (runningGames: RunningGameEvent) => void
) => () => Electron.IpcRenderer;
onLibraryBatchComplete: (cb: () => void) => () => Electron.IpcRenderer;