From a7a5acdc4beab5fd64d2e619fa63c29f2f6a07c4 Mon Sep 17 00:00:00 2001 From: Ethan Green Date: Sun, 28 Jan 2024 14:59:29 -0500 Subject: [PATCH] add GUI config support for UE4SS-settings.ini --- .../config-components/ConfigSelectionLayout.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/config-components/ConfigSelectionLayout.vue b/src/components/config-components/ConfigSelectionLayout.vue index 2fd5116c8..e319d2cec 100644 --- a/src/components/config-components/ConfigSelectionLayout.vue +++ b/src/components/config-components/ConfigSelectionLayout.vue @@ -127,6 +127,14 @@ import ProfileModList from '../../r2mm/mods/ProfileModList'; this.configFiles.push(new ConfigFile(file.substring(configLocation.length + 1), file, fileStat.mtime)); } } + + // HACK: Force the UE4SS-settings.ini file for shimloader mod installs to be visible. + const ue4ssSettingsPath = tree.getFiles().find(x => x.toLowerCase().endsWith("ue4ss-settings.ini")); + if (ue4ssSettingsPath) { + const lstat = await fs.lstat(ue4ssSettingsPath); + this.configFiles.push(new ConfigFile("UE4SS-settings.ini", ue4ssSettingsPath, lstat.mtime)); + } + this.shownConfigFiles = [...this.configFiles]; }