Merge pull request 'Extended out of date client messages' (#91) from AdjustOutOfDateMessages into master

Reviewed-on: SPT/Installer#91
This commit is contained in:
IsWaffle 2024-06-09 20:17:52 +00:00
commit 0c6ce9e681

View File

@ -66,7 +66,7 @@ public class ReleaseCheckTask : InstallerTaskBase
if (intGameVersion < intSPTVersion) if (intGameVersion < intSPTVersion)
{ {
return Result.FromError("Your client is outdated. Please update EFT using your BSG Launcher"); return Result.FromError("Your live EFT is out of date. Please update it using the BSG Launcher then run the SPT Installer again");
} }
if (intGameVersion == intSPTVersion) if (intGameVersion == intSPTVersion)
@ -74,14 +74,21 @@ public class ReleaseCheckTask : InstallerTaskBase
patchNeedCheck = false; patchNeedCheck = false;
} }
if ((intGameVersion != patchMirrorInfo.SourceClientVersion || bool sptClientIsOutdated = intSPTVersion != patchMirrorInfo.TargetClientVersion && patchNeedCheck;
intSPTVersion != patchMirrorInfo.TargetClientVersion) && patchNeedCheck) bool liveClientIsOutdated = intGameVersion != patchMirrorInfo.SourceClientVersion && patchNeedCheck;
if (liveClientIsOutdated)
{
return Result.FromError("Your live EFT is out of date. Please update it using the BSG Launcher then run the SPT Installer again");
}
if (sptClientIsOutdated)
{ {
return Result.FromError( return Result.FromError(
"We could not find a downgrade patcher for the version of EFT you have installed." + "Could not find a downgrade patcher for the version of EFT you have installed." +
"\nThis can happen due to one of the following reasons:" + "\nThis can happen due to one of the following reasons:" +
"\n* Live EFT just updated. The SPT team will create a new patcher within 24 hours, hold tight!" + "\n* Live EFT just updated. The SPT team will create a new patcher within 24 hours, hold tight!" +
"\n* Live EFT just updated. You have not installed it on your computer using the BSG launcher."); "\n* Live EFT just updated. You have not installed it on your computer using the BSG launcher");
} }
_data.PatchNeeded = patchNeedCheck; _data.PatchNeeded = patchNeedCheck;