diff --git a/VPet.ModMaker/Models/ModModel/FoodModel.cs b/VPet.ModMaker/Models/ModModel/FoodModel.cs index 4aed0f2..ce1422f 100644 --- a/VPet.ModMaker/Models/ModModel/FoodModel.cs +++ b/VPet.ModMaker/Models/ModModel/FoodModel.cs @@ -130,7 +130,7 @@ public class FoodModel : I18nModel Likability.Value = model.Likability.Value; Price.Value = model.Price.Value; Exp.Value = model.Exp.Value; - Image.Value = model.Image.Value; + Image.Value = model.Image.Value.Copy(); foreach (var item in model.I18nDatas) I18nDatas[item.Key] = item.Value.Copy(); CurrentI18nData.Value = I18nDatas[I18nHelper.Current.CultureName.Value]; diff --git a/VPet.ModMaker/Models/ModModel/ModInfoModel.cs b/VPet.ModMaker/Models/ModModel/ModInfoModel.cs index c3fefe9..6757d56 100644 --- a/VPet.ModMaker/Models/ModModel/ModInfoModel.cs +++ b/VPet.ModMaker/Models/ModModel/ModInfoModel.cs @@ -170,6 +170,8 @@ public class ModInfoModel : I18nModel /// 路径 static void LoadAnime(PetModel petModel, string path) { + if (Directory.Exists(path) is false) + return; foreach (var animeDir in Directory.EnumerateDirectories(path)) { var dirName = Path.GetFileName(animeDir); diff --git a/VPet.ModMaker/ViewModels/ModMakerWindowVM.cs b/VPet.ModMaker/ViewModels/ModMakerWindowVM.cs index 428808c..fca714e 100644 --- a/VPet.ModMaker/ViewModels/ModMakerWindowVM.cs +++ b/VPet.ModMaker/ViewModels/ModMakerWindowVM.cs @@ -119,9 +119,12 @@ public class ModMakerWindowVM lps.Add( new Line(nameof(history)) { - new Sub("PetName", history.Id), - new Sub("SourcePath", history.SourcePath), - new Sub("LastTime", history.LastTime.ToString("yyyy/MM/dd HH:mm")) + new Sub(nameof(ModMakeHistory.Id), history.Id), + new Sub(nameof(ModMakeHistory.SourcePath), history.SourcePath), + new Sub( + nameof(ModMakeHistory.LastTime), + history.LastTime.ToString("yyyy/MM/dd HH:mm") + ) } ); } diff --git a/VPet.ModMaker/Views/ModEdit/ModEditWindow.xaml b/VPet.ModMaker/Views/ModEdit/ModEditWindow.xaml index 05442f4..4a03882 100644 --- a/VPet.ModMaker/Views/ModEdit/ModEditWindow.xaml +++ b/VPet.ModMaker/Views/ModEdit/ModEditWindow.xaml @@ -14,10 +14,10 @@ d:DataContext="{d:DesignInstance Type=vm:ModEditWindowVM}" WindowStartupLocation="CenterScreen" mc:Ignorable="d"> - - - - + + + + @@ -64,7 +64,7 @@ Command="{Binding ChangeImageCommand}" Content="{ll:Str 添加图片}"> -