public static void loadSettings() { // default download folder string downfolder = File.ReadAllText(currentLocation + "/assets/configurations/d_f"); if (downfolder == "default" || string.IsNullOrWhiteSpace(downfolder)) { downfolder = Constants.DefaultdownloadFolder; } else { downloadFolder = downfolder; } // default chache location cacheFolder = File.ReadAllText(currentLocation + "/assets/configurations/d_c"); if (cacheFolder == "default" || string.IsNullOrWhiteSpace(cacheFolder)) { cacheFolder = Constants.DefaultCacheFolder; } // default vlc file vlcFile = File.ReadAllText(currentLocation + "/assets/configurations/d_v"); if (vlcFile == "default" || string.IsNullOrWhiteSpace(vlcFile)) { vlcFile = FilesUtilities.GetVlcPath(); } }
public static string GetVlcFile() { if (!string.IsNullOrWhiteSpace(vlcFile)) { return(vlcFile); } return(FilesUtilities.GetVlcPath()); }