aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src-vue/src/plugins')
-rw-r--r--src-vue/src/plugins/store.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts
index 37d0d89d..2991ad1d 100644
--- a/src-vue/src/plugins/store.ts
+++ b/src-vue/src/plugins/store.ts
@@ -370,6 +370,12 @@ async function _initializeApp(state: any) {
&& persistent_game_install.value.game_path !== undefined
&& persistent_game_install.value.install_type !== undefined
) { // For some reason, the plugin-store doesn't throw an eror but simply returns `null` when key not found
+
+ // Add profile to existing storage
+ if (persistent_game_install.value.profile === undefined) {
+ persistent_game_install.value.profile = "R2Northstar"
+ }
+
let game_install = persistent_game_install.value as GameInstall;
// check if valid path
let is_valid_titanfall2_install = await invoke("verify_install_location", { gamePath: game_install.game_path }) as boolean;