示例#1
0
    // Token: 0x06000091 RID: 145 RVA: 0x0000AB8C File Offset: 0x00008D8C
    private static Class47 smethod_6(out bool bool_0)
    {
        bool_0 = true;
        if (Class9.class47_0 != null)
        {
            return(Class9.class47_0);
        }
        if (Class9.class136_0 != null)
        {
            bool_0 = false;
            return(Class9.class136_0.method_8());
        }
        Class136 @class = Class9.smethod_8();
        Class47  class2 = @class.method_8();

        if (class2.vmethod_0())
        {
            Class9.class47_0 = class2;
            @class.Dispose();
        }
        else
        {
            Class9.class136_0 = @class;
            bool_0            = false;
        }
        return(class2);
    }
示例#2
0
        // Token: 0x06002B39 RID: 11065 RVA: 0x000A78D0 File Offset: 0x000A5AD0
        public static bool smethod_0(EventHandler <EventArgs9> progressChanged, string installPath)
        {
            string path  = Path.Combine(installPath, "phase_1.mf");
            string path2 = Path.Combine(installPath, "phase_2.mf");
            bool   result;

            try
            {
                using (Stream stream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.None))
                {
                    using (Stream stream2 = File.Open(path2, FileMode.Open, FileAccess.Read, FileShare.None))
                    {
                        using (Class136 @class = new Class136(stream))
                        {
                            using (Class136 class2 = new Class136(stream2))
                            {
                                @class.method_10();
                                class2.method_10();
                                Class337 class3 = @class.method_8("phase_1_index.txt");
                                Class337 class4 = class2.method_8("phase_2_index.txt");
                                int      num    = class3.Files.Count + class4.Files.Count;
                                int      num2   = 0;
                                if (progressChanged != null)
                                {
                                    progressChanged(null, new EventArgs9((long)num2, (long)num));
                                }
                                Class481.smethod_1(progressChanged, installPath, @class, class3, num, ref num2);
                                Class481.smethod_1(progressChanged, installPath, class2, class4, num, ref num2);
                            }
                        }
                    }
                }
                result = true;
            }
            catch (Exception ex)
            {
                ex.smethod_0();
                result = false;
            }
            return(result);
        }