Skip to content

Commit

Permalink
[FIX] Using crossover with gog and amazon
Browse files Browse the repository at this point in the history
  • Loading branch information
Etaash-mathamsetty committed Dec 10, 2023
1 parent 408ff9f commit 14ea43e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/backend/utils/compatibility_layers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export async function getGamingPortingToolkitWine(): Promise<

export type AllowedWineFlags = Pick<
LaunchCommand,
'--wine' | '--wrapper' | '--no-wine'
'--wine' | '--wrapper' | '--no-wine' | '--crossover'
>

/**
Expand All @@ -403,6 +403,12 @@ export function getWineFlags(
'--wrapper': NonEmptyString.parse(`${wrapper} '${wineBin}' run`)
}
break
case 'crossover':
partialCommand = {
'--crossover': true
}
if (wrapper) partialCommand['--wrapper'] = NonEmptyString.parse(wrapper)
break
default:
break
}
Expand Down

0 comments on commit 14ea43e

Please sign in to comment.