summaryrefslogtreecommitdiff
path: root/frontend/src/components/modals
diff options
context:
space:
mode:
authorAAGaming <aa@mail.catvibers.me>2023-02-22 22:00:23 -0500
committerAAGaming <aa@mail.catvibers.me>2023-02-22 22:00:30 -0500
commit97bb3fa4c879cf2a517e59b1f7177c9e49e0a692 (patch)
tree5e60e481a02d31ac4c88a780bdd853a6906a4b67 /frontend/src/components/modals
parent611245aec9c056383692fac8a1214efd4718449f (diff)
downloaddecky-loader-97bb3fa4c879cf2a517e59b1f7177c9e49e0a692.tar.gz
decky-loader-97bb3fa4c879cf2a517e59b1f7177c9e49e0a692.zip
Fix loader on feb 22 2023 beta
Diffstat (limited to 'frontend/src/components/modals')
-rw-r--r--frontend/src/components/modals/filepicker/patches/library.ts11
1 files changed, 3 insertions, 8 deletions
diff --git a/frontend/src/components/modals/filepicker/patches/library.ts b/frontend/src/components/modals/filepicker/patches/library.ts
index 3abf824b..d398b83d 100644
--- a/frontend/src/components/modals/filepicker/patches/library.ts
+++ b/frontend/src/components/modals/filepicker/patches/library.ts
@@ -4,13 +4,6 @@ import Logger from '../../../../logger';
const logger = new Logger('LibraryPatch');
-declare global {
- interface Window {
- SteamClient: any;
- appDetailsStore: any;
- }
-}
-
let patch: Patch;
function rePatch() {
@@ -20,7 +13,9 @@ function rePatch() {
const details = window.appDetailsStore.GetAppDetails(appid);
logger.debug('game details', details);
// strShortcutStartDir
- const file = await window.DeckyPluginLoader.openFilePicker(details.strShortcutStartDir.replaceAll('"', ''));
+ const file = await window.DeckyPluginLoader.openFilePicker(
+ details?.strShortcutStartDir.replaceAll('"', '') || '/',
+ );
logger.debug('user selected', file);
window.SteamClient.Apps.SetShortcutExe(appid, JSON.stringify(file.path));
const pathArr = file.path.split('/');