Exemplo n.º 1
0
    public static bool smethod_5(string string_1)
    {
        bool flag = false;

        Class120.enum11_0 = (Class120.Enum11) 0;
        bool result;

        if (string_1 == null || string_1.Length == 0)
        {
            result = flag;
        }
        else
        {
            Class120.enum11_0 = Class120.smethod_4(string_1);
            if (Class120.enum11_0 == (Class120.Enum11) 0)
            {
                result = flag;
            }
            else
            {
                flag = true;
                RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\ZAR\\X", true);
                if (registryKey == null)
                {
                    registryKey = Registry.CurrentUser.CreateSubKey("SOFTWARE\\ZAR\\X");
                }
                registryKey.SetValue("kkk", string_1);
                result = flag;
            }
        }
        return(result);
    }
Exemplo n.º 2
0
 // Token: 0x0600184E RID: 6222 RVA: 0x00041A6C File Offset: 0x0003FC6C
 public void method_0()
 {
     lock (Class175.object_0)
     {
         using (FileStream fileStream = new FileStream(this.string_1, FileMode.Create, FileAccess.Write))
         {
             Class120.smethod_8(fileStream, "AUIF");
             Class120.smethod_4(fileStream, 1, this.LastCheckedForUpdate);
             Class120.smethod_0(fileStream, 2, (int)this.UpdateStepOn);
             if (!string.IsNullOrEmpty(this.UpdateVersion))
             {
                 Class120.smethod_5(fileStream, 4, this.UpdateVersion);
             }
             if (!string.IsNullOrEmpty(this.ChangesInLatestVersion))
             {
                 Class120.smethod_5(fileStream, 5, this.ChangesInLatestVersion);
                 Class120.smethod_1(fileStream, 6, this.ChangesIsRTF);
             }
             fileStream.WriteByte(byte.MaxValue);
         }
     }
 }