Extended out of date client messages

This commit is contained in:
Dev 2024-06-09 17:15:47 +01:00
parent 074ac6e826
commit 918106a469

View File

@ -66,22 +66,29 @@ public class ReleaseCheckTask : InstallerTaskBase
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)
{
patchNeedCheck = false;
}
if ((intGameVersion != patchMirrorInfo.SourceClientVersion ||
intSPTVersion != patchMirrorInfo.TargetClientVersion) && patchNeedCheck)
bool sptClientIsOutdated = 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(
"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:" +
"\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;