Skip to content

Commit

Permalink
fix: On did install game data event
Browse files Browse the repository at this point in the history
  • Loading branch information
colin969 committed Apr 3, 2024
1 parent 9d9b3d0 commit dba8e64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/back/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
const gameData = await fpDatabase.findGameDataById(gameDataId);
Expand Down

0 comments on commit dba8e64

Please sign in to comment.