Exemple #1
0
 public static void smethod_2(GClass32 gclass32_0)
 {
     try
     {
         string str1 = GClass128.smethod_9(gclass32_0);
         if (str1 == null)
         {
             return;
         }
         string string_1 = GClass128.smethod_8(gclass32_0);
         foreach (string user in SteamManager.GetUsers(SteamManager.GetSteamFolder()))
         {
             ulong  num   = GClass128.smethod_3(gclass32_0.Name, string_1);
             string path2 = "config";
             string path3 = "grid";
             string str2  = System.IO.Path.Combine(user, path2, path3);
             System.IO.Directory.CreateDirectory(str2);
             string destFileName = System.IO.Path.Combine(str2, ((long)num).ToString() + ".png");
             System.IO.File.Copy(str1, destFileName, true);
         }
         GClass6.smethod_6(str1);
     }
     catch
     {
     }
 }
Exemple #2
0
 public static void smethod_1()
 {
     Task.Run((Action)(() =>
     {
         try
         {
             foreach (string user in SteamManager.GetUsers(SteamManager.GetSteamFolder()))
             {
                 foreach (VDFEntry vdfEntry in ((IEnumerable <VDFEntry>)SteamManager.ReadShortcuts(user)).Where <VDFEntry>((Func <VDFEntry, bool>)(vdfentry_0 =>
                 {
                     if (vdfentry_0.Tags.Length >= 1)
                     {
                         return(vdfentry_0.Tags[0] == "Wii U USB Helper");
                     }
                     return(false);
                 })))
                 {
                     try
                     {
                         ulong num = GClass128.smethod_3(vdfEntry.AppName, vdfEntry.Exe);
                         string str = System.IO.Path.Combine(user, "config", "grid");
                         System.IO.Directory.CreateDirectory(str);
                         if (!System.IO.File.Exists(System.IO.Path.Combine(str, ((long)num).ToString() + ".png")))
                         {
                             TitleId index = new TitleId(System.IO.Path.GetFileNameWithoutExtension(vdfEntry.Exe));
                             GClass128.smethod_2(GClass28.dictionary_0[index]);
                         }
                     }
                     catch
                     {
                     }
                 }
             }
         }
         catch
         {
         }
     }));
 }