예제 #1
0
        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();
            }
        }
예제 #2
0
 public static string GetVlcFile()
 {
     if (!string.IsNullOrWhiteSpace(vlcFile))
     {
         return(vlcFile);
     }
     return(FilesUtilities.GetVlcPath());
 }