예제 #1
0
        private GClass99 method_11(GClass30 gclass30_0)
        {
            this.method_17("Fetching Ticket...");
            string str = Path.Combine(gclass30_0.OutputPath, "title.tik");

            if (gclass30_0.Platform != Platform.Wii_U_Custom && (!(gclass30_0 is GClass33) || gclass30_0.System != SystemType.SystemWiiU))
            {
                if (!gclass30_0.bool_0)
                {
                    this.method_17("Generating ticket");
                    System.IO.File.WriteAllBytes(str, gclass30_0.TicketArray);
                    return(gclass30_0.Ticket);
                }
                this.method_17("Downloading ticket from that site");
                byte[] bytes = System.IO.File.ReadAllBytes(Path.Combine(Path.Combine(GClass88.DirectoryCache, "tickets"), gclass30_0.TitleId.IdRaw + ".tik"));
                gclass30_0.TicketArray = bytes;
                System.IO.File.WriteAllBytes(str, bytes);
                gclass30_0.Ticket = GClass99.smethod_7(gclass30_0.TicketArray, gclass30_0.System);
                return(gclass30_0.Ticket);
            }
            this.method_17("Downloading Ticket from NUS");
            this.gclass78_0.method_5(string.Format("{0}cetk", (object)gclass30_0.CDN_URL_PLUS_TITLEID), str, 0UL, GClass78.GEnum4.const_0, this.Proxy, 0L, (byte[])null, (byte[])null, (byte)0);
            gclass30_0.TicketArray = System.IO.File.ReadAllBytes(str);
            gclass30_0.Ticket      = GClass99.smethod_6(str, gclass30_0.System);
            return(gclass30_0.Ticket);
        }
예제 #2
0
        public static List <GStruct7> smethod_1(GClass30 gclass30_0)
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            Class85.Class86 class86 = new Class85.Class86();
            // ISSUE: reference to a compiler-generated field
            class86.gclass30_0 = gclass30_0;
            // ISSUE: reference to a compiler-generated field
            string str1 = Path.Combine(class86.gclass30_0.OutputPath, "title.tmd");
            // ISSUE: reference to a compiler-generated field
            string str2 = Path.Combine(class86.gclass30_0.OutputPath, "title.tik");

            // ISSUE: reference to a compiler-generated field
            if (File.Exists(str1) && (class86.gclass30_0.Ticket != null || File.Exists(str2)))
            {
                if (!File.Exists(str1))
                {
                    return(((IEnumerable <GStruct7>) new GStruct7[1]
                    {
                        new GStruct7((GClass101)null, new List <int>(), false, true)
                    }).ToList <GStruct7>());
                }
                // ISSUE: reference to a compiler-generated field
                TMDExcractionAndProcessing gclass100 = TMDExcractionAndProcessing.smethod_0(str1, class86.gclass30_0.System);
                // ISSUE: reference to a compiler-generated field
                // ISSUE: reference to a compiler-generated field
                // ISSUE: reference to a compiler-generated field
                class86.gclass99_0 = class86.gclass30_0.Ticket ?? GClass99.smethod_6(str2, class86.gclass30_0.System);
                // ISSUE: reference to a compiler-generated method
                return(((IEnumerable <GClass101>)gclass100.GClass101_0).Select <GClass101, GStruct7>(new Func <GClass101, GStruct7>(class86.method_0)).ToList <GStruct7>());
            }
            return(((IEnumerable <GStruct7>) new GStruct7[1]
            {
                new GStruct7((GClass101)null, new List <int>(), false, true)
            }).ToList <GStruct7>());
        }