From 6d2e9365c0fb1bea804743245d79a5b97e3af108 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Wed, 21 Feb 2024 01:08:25 -0500 Subject: more major websocket progress --- frontend/src/components/modals/filepicker/patches/library.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'frontend/src/components/modals') diff --git a/frontend/src/components/modals/filepicker/patches/library.ts b/frontend/src/components/modals/filepicker/patches/library.ts index 076e78f6..71eb9541 100644 --- a/frontend/src/components/modals/filepicker/patches/library.ts +++ b/frontend/src/components/modals/filepicker/patches/library.ts @@ -1,6 +1,7 @@ import { Patch, findModuleChild, replacePatch, sleep } from 'decky-frontend-lib'; import Logger from '../../../../logger'; +import { FileSelectionType } from '..'; const logger = new Logger('LibraryPatch'); @@ -13,7 +14,12 @@ function rePatch() { const details = window.appDetailsStore.GetAppDetails(appid); logger.debug('game details', details); // strShortcutStartDir - const file = await DeckyPluginLoader.openFilePicker(details?.strShortcutStartDir.replaceAll('"', '') || '/'); + const file = await DeckyPluginLoader.openFilePicker( + FileSelectionType.FILE, + details?.strShortcutStartDir.replaceAll('"', '') || '/', + true, + true, + ); logger.debug('user selected', file); window.SteamClient.Apps.SetShortcutExe(appid, JSON.stringify(file.path)); const pathArr = file.path.split('/'); -- cgit v1.2.3