/** * - Documents * - AppData * - NMM * - Vortex */ public ListPaths getOptionalPaths_AppBkp() { ListPaths optAppBkpPaths = new ListPaths(); // if is optional, add if (this._isDocsOptional && !this.docsGameFolder.Trim().Equals("")) { //if (!this.docsBkp.Trim().Equals("")) //{ optAppBkpPaths.addpath(this.docsBkp, PathsHelper.LABEL_DOCUMENTS); //} } if (this._isAppDataOptional && !this.appDataGameFolder.Trim().Equals("")) { //if (!this.appDataBkp.Trim().Equals("")) //{ optAppBkpPaths.addpath(this.appDataBkp, PathsHelper.LABEL_APPDATA); //} } // if not empty, add if (!this.nmmBkp.Trim().Equals("") && !this.nmmGameFolder.Trim().Equals("")) { optAppBkpPaths.addpath(this.nmmBkp, PathsHelper.LABEL_NMM); } if (!this.vortexBkp.Trim().Equals("") && !this.vortexGameFolder.Trim().Equals("")) { optAppBkpPaths.addpath(this.vortexBkp, PathsHelper.LABEL_VORTEX); } return(optAppBkpPaths); }
internal void addpath(ListPaths lpaths) { List <string> ll = lpaths.listPathLabels; List <string> lp = lpaths.listPaths; this.listPathLabels.AddRange(ll); this.listPaths.AddRange(lp); }
/** * - Mantatory * - Optional */ public ListPaths getAllPaths_AppBkp() { ListPaths list = new ListPaths(); list.addpath(this.getMandatoryPaths_AppBkp()); list.addpath(this.getOptionalPaths_AppBkp()); return(list); }
/** * - Mandatory * - Optional */ public ListPaths getAllPaths_BkpProf(string profileName) { ListPaths list = new ListPaths(); list.addpath(this.getMandatoryPaths_BkpProf(profileName)); list.addpath(this.getOptionalPaths_BkpProf(profileName)); return(list); }
public ListPaths getMandatoryPaths_AppGame() { ListPaths manAppPaths = new ListPaths(); // always mandatory manAppPaths.addpath(this.steamGame, PathsHelper.LABEL_STEAM); // if not optional add if (!this._isDocsOptional) { manAppPaths.addpath(this.docsGame, PathsHelper.LABEL_DOCUMENTS); } if (!this._isAppDataOptional) { manAppPaths.addpath(this.appDataGame, PathsHelper.LABEL_APPDATA); } return(manAppPaths); }
public ListPaths getMandatoryPaths_BkpProf(string profileName) { ListPaths manBkpPaths = new ListPaths(); // always mandatory manBkpPaths.addpath(this.steamBkpProf(profileName), PathsHelper.LABEL_STEAM); // if not optional add if (!this._isDocsOptional) { manBkpPaths.addpath(this.docsBkpProf(profileName), PathsHelper.LABEL_DOCUMENTS); } if (!this._isAppDataOptional) { manBkpPaths.addpath(this.appDataBkpProf(profileName), PathsHelper.LABEL_APPDATA); } return(manBkpPaths); }
/// <summary> /// This methods checks the consistency between two objects ListPaths. In sucess returns /// true, and the output strings are empty. In case of failure, retuns false, and the /// labels that didnt matched. /// </summary> /// <param name="lpaths"></param> /// <param name="errLabel1"></param> /// <param name="errLabel2"></param> /// <returns></returns> public bool checkLabels(ListPaths lpaths, out string errLabel1, out string errLabel2) { int len = lpaths.listPathLabels.Count; List <string> listIn = lpaths.listPathLabels; errLabel1 = ""; errLabel2 = ""; if (this.listPathLabels.Count == len) { for (int i = 0; i < len; i++) { if (listIn[i].Trim() != this.listPathLabels[i].Trim()) { errLabel1 = this.listPathLabels[i].Trim(); errLabel2 = listIn[i].Trim(); return(false); } } return(true); } return(false); }
public int checkBackupInstallationPaths(string bkpProfileName, out string errPath, out string errLabel) { ListPaths listPathsObj = this.getAllPaths_BkpProfGame(bkpProfileName); return(this.checkInstallationHelper(listPathsObj.listPaths, listPathsObj.listPathLabels, out errPath, out errLabel)); }
public int checkInstallationPaths(out string errPath, out string errLabel) { ListPaths listPathsObj = this.getAllPaths_AppGame(); return(this.checkInstallationHelper(listPathsObj.listPaths, listPathsObj.listPathLabels, out errPath, out errLabel)); }