withSIX.Mini.Plugin.Arma.Services.IronFrontInfo.IsInstalled C# (CSharp) Method

IsInstalled() public method

public IsInstalled ( ) : bool
return bool
        public bool IsInstalled() => GameIFPath.Exists && GameIF3MPath.Exists &&
                                     GameIFOtherAddonsPath.Exists
                                     && (!IFDlcSourcePath.Exists || GameIFDlcPath.Exists);
    }

Usage Example

Ejemplo n.º 1
0
        // TODO: The actionHandler concept should be refactored out of this domain service...
        public void Install(IronFrontInfo info, Action <StatusRepo, string, Action> actionHandler)
        {
            Confirmations(info);

            if (info.IsInstalled())
            {
                if (!ConfirmPatchedToLatestVersion(info))
                {
                    actionHandler(info.Status, "IFA Patching", () => ApplyLatestPatches(info));
                }
                return;
            }

            actionHandler(info.Status, "IFA Conversion", () => CleanInstall(info));
        }
All Usage Examples Of withSIX.Mini.Plugin.Arma.Services.IronFrontInfo::IsInstalled