From bc760d802f6196f26bdedbbbf8e2f4ed57510526 Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Thu, 26 Sep 2024 21:35:44 -0400 Subject: [PATCH] frontend: check VCC requirement when updating (#575) Fixes #572 --- src/assets/translations/en-US.json | 1 + src/components/games/setup/GameUpdate.svelte | 68 ++++++++++++++------ 2 files changed, 49 insertions(+), 20 deletions(-) diff --git a/src/assets/translations/en-US.json b/src/assets/translations/en-US.json index b06a870..f3ba4e0 100644 --- a/src/assets/translations/en-US.json +++ b/src/assets/translations/en-US.json @@ -104,6 +104,7 @@ "requirements_windows_cantCheckIfVccRuntimeInstalled": "Unable to check if Microsoft Visual C++ Runtime is installed", "requirements_windows_vccRuntimeNotInstalled": "Microsoft Visual C++ Runtime is not installed or is out of date", "requirements_windows_vccRuntimeExplanation": "A recent version of the Microsoft Visual C++ Runtime is required to run the game", + "gameUpdate_windows_vccRuntimeExplanation": "A recent version of the Microsoft Visual C++ Runtime is required to update the game", "requirements_windows_vccRuntimeExplanation_downloadLink": "Download the latest Microsoft Visual C++ Runtime here", "requirements_notMet_header": "Unfortunately, your system does not meet all the minimum requirements or we were unable to check them", "settings_folders_installationDir_prompt": "Pick an Installation Folder", diff --git a/src/components/games/setup/GameUpdate.svelte b/src/components/games/setup/GameUpdate.svelte index 57b296b..a7aa674 100644 --- a/src/components/games/setup/GameUpdate.svelte +++ b/src/components/games/setup/GameUpdate.svelte @@ -1,8 +1,10 @@
- +
@@ -46,25 +58,41 @@ {$VersionStore.activeVersionType} -

- {$_("gameUpdate_versionMismatch_nextSteps")} -

-
- {$_("requirements_windows_vccRuntimeNotInstalled")} - + {$_("gameUpdate_windows_vccRuntimeExplanation")} + {$_("requirements_windows_vccRuntimeExplanation_downloadLink")} +

+ {:else} +

+ {$_("gameUpdate_versionMismatch_nextSteps")} +

+
-
+ + +
+ {/if}