示例#1
0
 private static Task LoadOptions()
 {
     return(Task.Run(() =>
     {
         ModList = new ModList();
         SMAPI = new SmapiIntegration();
         Options = ModList.Where(mod => !mod.Value.Disabled && mod.Value.Options != null).SelectMany(mod => mod.Value.Options).ToList();
         FavoriteData.LoadOptions();
     }));
 }
示例#2
0
 private static Task LoadOptions()
 {
     return(Task.Run(() =>
     {
         ModList = new ModList();
         SMAPI = new SmapiIntegration();
         Options = ModList.SelectMany(mod => mod.Value.Options).ToList();
         LoadFavoriteOptions();
     }));
 }