From dba8e64124448ac5464e4314f7b3ccfbd037e597 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 3 Apr 2024 21:07:49 +0100 Subject: [PATCH] fix: On did install game data event --- src/back/download.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/back/download.ts b/src/back/download.ts index 5bb9e27d5..6c156305c 100644 --- a/src/back/download.ts +++ b/src/back/download.ts @@ -3,9 +3,10 @@ import * as crypto from 'crypto'; import { GameData, GameDataSource } from 'flashpoint-launcher'; import * as fs from 'fs'; import * as path from 'path'; -import { fpDatabase, onDidInstallGameData } from '.'; +import { fpDatabase } from '.'; import { DownloadDetails } from '@shared/back/types'; import { PartialGameData } from '@fparchive/flashpoint-archive'; +import { onDidInstallGameData } from './util/events'; export async function downloadGameData(gameDataId: number, dataPacksFolderPath: string, sources: GameDataSource[], abortSignal: AbortSignal, onProgress?: (percent: number) => void, onDetails?: (details: DownloadDetails) => void): Promise { const gameData = await fpDatabase.findGameDataById(gameDataId);