fix: adding wine prefix to preview

This commit is contained in:
Chubby Granny Chaser
2024-10-22 13:39:41 +01:00
parent bfcf8178d8
commit ceef316a19
2 changed files with 12 additions and 3 deletions

View File

@@ -52,12 +52,13 @@ export class Ludusavi {
static async getBackupPreview(
_shop: GameShop,
objectId: string
objectId: string,
winePrefix?: string | null
): Promise<LudusaviBackup | null> {
const config = await this.getConfig();
const backupData = await this.worker.run(
{ title: objectId, preview: true },
{ title: objectId, winePrefix, preview: true },
{ name: "backupGame" }
);