Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Etaash-mathamsetty committed Nov 26, 2023
1 parent 4efac11 commit 0be5edf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/backend/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ class GlobalConfigV0 extends GlobalConfig {
enableUpdates: false,
addDesktopShortcuts: false,
addStartMenuShortcuts: false,
autoInstallDxvk: isVulkanSupported,
autoInstallVkd3d: isLinux && isVulkanSupported,
autoInstallDxvk: isVulkanSupported(),
autoInstallVkd3d: isLinux && isVulkanSupported(),
autoInstallDxvkNvapi: false,
addSteamShortcuts: false,
preferSystemLibs: false,
Expand Down
2 changes: 1 addition & 1 deletion src/backend/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contextBridge.exposeInMainWorld(
'isSteamDeckGameMode',
process.env.XDG_CURRENT_DESKTOP === 'gamescope'
)
contextBridge.exposeInMainWorld('isVulkanSupported', isVulkanSupported)
contextBridge.exposeInMainWorld('isVulkanSupported', isVulkanSupported())

if (navigator.userAgent.includes('Windows')) {
Object.defineProperty(navigator, 'platform', {
Expand Down
4 changes: 1 addition & 3 deletions src/backend/tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ function getVkd3dUrl(): string {
return 'https://api.github.com/repos/Heroic-Games-Launcher/vkd3d-proton/releases/latest'
}

function getIsVulkanSupported(): boolean {
export function isVulkanSupported(): boolean {
if (isMac) return true
if (isWindows) return false

Expand All @@ -765,8 +765,6 @@ function getIsVulkanSupported(): boolean {
return true
}

export const isVulkanSupported = getIsVulkanSupported()

export async function runWineCommandOnGame(
runner: Runner,
appName: string,
Expand Down

0 comments on commit 0be5edf

Please sign in to comment.