public string GetLifFolderPath(LddLif lif) { switch (lif) { case LddLif.Assets: if (string.IsNullOrEmpty(ProgramFilesPath)) { return(string.Empty); } return(Path.Combine(ProgramFilesPath, "Assets")); case LddLif.DB: if (string.IsNullOrEmpty(ApplicationDataPath)) { return(string.Empty); } return(Path.Combine(ApplicationDataPath, "db")); default: return(null); } }
public bool IsLifExtracted(LddLif lif) { return(((LifStatusFlags >> ((int)lif * 3)) & 4) == 4); }
public bool IsLifPresent(LddLif lif) { return(((LifStatusFlags >> ((int)lif * 3)) & 1) == 1); }