Example #1
0
 private void InstallCommunityShaders()
 {
     try
     {
         string id  = this.GetId();
         long   num = 0;
         string str = System.IO.Path.Combine(this.ShaderTransferDir, id + ".bin");
         if (System.IO.File.Exists(str))
         {
             num = new System.IO.FileInfo(str).Length;
         }
         if (!(GClass6.smethod_20(string.Format("{0}/shaders/proposal.php", (object)Class67.String_1), new NameValueCollection()
         {
             {
                 "id",
                 id
             },
             {
                 "size",
                 num.ToString()
             }
         }) == "LARGER"))
         {
             return;
         }
         GClass27.smethod_7(string.Format("{0}/shaders/vault/{1}.zip", (object)Class67.String_1, (object)id), this.ShaderTransferDir);
     }
     catch
     {
     }
 }
Example #2
0
 public void InstallShaderCache()
 {
     System.IO.Directory.CreateDirectory(this.ShaderTransferDir);
     GClass27.smethod_7(string.Format("{0}{1}.zip", (object)this.ShaderBaseUrl, (object)this.GetId()), this.ShaderTransferDir);
 }