From b40cc2eae4503e0663af63e0a58cc42e00913900 Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 2 Jun 2024 14:00:19 +0100 Subject: [PATCH] Updated `file_mismatch_dialog_message` message text --- project/SPT.Launcher.Base/Helpers/LocalizationProvider.cs | 5 ++++- project/SPT.Launcher/Models/GameStarterFrontend.cs | 5 ++++- project/SPT.Launcher/SPT_Data/Launcher/Locales/English.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/project/SPT.Launcher.Base/Helpers/LocalizationProvider.cs b/project/SPT.Launcher.Base/Helpers/LocalizationProvider.cs index 20cd41f..7ab2202 100644 --- a/project/SPT.Launcher.Base/Helpers/LocalizationProvider.cs +++ b/project/SPT.Launcher.Base/Helpers/LocalizationProvider.cs @@ -160,7 +160,10 @@ namespace SPT.Launcher.Helpers englishLocale.level = "Level"; englishLocale.game_path = "Game Path"; englishLocale.patching = "Patching"; - englishLocale.file_mismatch_dialog_message = "The input file hash doesn't match the expected hash. You may be using the wrong version\nof SPT for your client files.\n\nDo you want to continue?"; + englishLocale.file_mismatch_dialog_message = "We noticed your EFT files do not match what we expected to see for SPT: {0}" + + "\nPlease check you have the latest version of live EFT installed" + + "\nIf not, delete SPT, update live EFT and run the Installer in an empty folder again" + + "\n\nAre you sure you want to proceed?"; englishLocale.yes = "Yes"; englishLocale.no = "No"; englishLocale.open_folder = "Open Folder"; diff --git a/project/SPT.Launcher/Models/GameStarterFrontend.cs b/project/SPT.Launcher/Models/GameStarterFrontend.cs index 9c0149f..498ff4a 100644 --- a/project/SPT.Launcher/Models/GameStarterFrontend.cs +++ b/project/SPT.Launcher/Models/GameStarterFrontend.cs @@ -26,7 +26,10 @@ namespace SPT.Launcher.Models { if(info.Status == ByteBanger.PatchResultType.InputChecksumMismatch) { - var result = await DialogHost.DialogHost.Show(new ConfirmationDialogViewModel(null, LocalizationProvider.Instance.file_mismatch_dialog_message)); + string serverVersion = ServerManager.GetVersion(); + + var localeText = string.Format(LocalizationProvider.Instance.file_mismatch_dialog_message, serverVersion); + var result = await DialogHost.DialogHost.Show(new ConfirmationDialogViewModel(null, localeText)); if(result != null && result is bool confirmation && !confirmation) { diff --git a/project/SPT.Launcher/SPT_Data/Launcher/Locales/English.json b/project/SPT.Launcher/SPT_Data/Launcher/Locales/English.json index c63c4a8..588d241 100644 --- a/project/SPT.Launcher/SPT_Data/Launcher/Locales/English.json +++ b/project/SPT.Launcher/SPT_Data/Launcher/Locales/English.json @@ -63,7 +63,7 @@ "side": "Side", "level": "Level", "patching": "Patching", - "file_mismatch_dialog_message": "The input file hash doesn't match the expected hash. You may be using the wrong version\nof SPT for your client files.\n\nDo you want to continue?", + "file_mismatch_dialog_message": "We noticed your EFT files do not match what we expected to see for SPT: {0}\nPlease check you have the latest version of EFT installed\nIf not, delete SPT, update live EFT and run the Installer in an empty folder again\n\nAre you sure you want to proceed?", "yes": "Yes", "no": "No", "open_folder": "Open Folder",