mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复MOD重复加载的错误
This commit is contained in:
parent
8b55b741d1
commit
6e4b4fa7f6
@ -1405,7 +1405,7 @@ namespace VPet_Simulator.Windows
|
||||
/// <param name="Path">MOD地址</param>
|
||||
public async Task GameLoad(List<DirectoryInfo> Path)
|
||||
{
|
||||
MODPath = Path.Distinct().ToList();
|
||||
MODPath = Path.GroupBy(x => x.FullName).Select(group => group.First()).ToList();
|
||||
await Dispatcher.InvokeAsync(new Action(() => LoadingText.Content = "Loading MOD"));
|
||||
//加载mod
|
||||
foreach (DirectoryInfo di in MODPath)
|
||||
|
Loading…
Reference in New Issue
Block a user