From 1da42926cf4d795449e579d8b7548d6e8be3d5ff Mon Sep 17 00:00:00 2001 From: ZouJin Date: Sun, 20 Aug 2023 23:24:06 +1000 Subject: [PATCH] =?UTF-8?q?Mod=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs | 5 +++-- VPet-Simulator.Windows/mod/0000_core/lang/en/Base2306.lps | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs b/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs index 918aa25..80db32f 100644 --- a/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs +++ b/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs @@ -342,7 +342,8 @@ namespace VPet_Simulator.Windows { try { - if (mainplug.GetType().GetMethod("Setting").DeclaringType != typeof(MainPlugin) + if (mainplug.PluginName == mod.Name && + mainplug.GetType().GetMethod("Setting").DeclaringType != typeof(MainPlugin) && mainplug.GetType().Assembly.Location.Contains(mod.Path.FullName)) { ButtonSetting.Visibility = Visibility.Visible; @@ -923,7 +924,7 @@ namespace VPet_Simulator.Windows { try { - if (mainplug.GetType().GetMethod("Setting").DeclaringType != typeof(MainPlugin) + if (mainplug.PluginName == mod.Name && mainplug.GetType().GetMethod("Setting").DeclaringType != typeof(MainPlugin) && mainplug.GetType().Assembly.Location.Contains(mod.Path.FullName)) { mainplug.Setting(); diff --git a/VPet-Simulator.Windows/mod/0000_core/lang/en/Base2306.lps b/VPet-Simulator.Windows/mod/0000_core/lang/en/Base2306.lps index d6e0c95..0380346 100644 --- a/VPet-Simulator.Windows/mod/0000_core/lang/en/Base2306.lps +++ b/VPet-Simulator.Windows/mod/0000_core/lang/en/Base2306.lps @@ -140,7 +140,7 @@ MOD介绍#MOD Description:| 停用该模组#Disable:| 更新至Steam#Update to Steam:| 创意工坊页面#Workshop Page:| -MOD设置#MOD:| +MOD设置#MOD Setting:| 启用代码插件#Enable code plugin:| 启用该模组的代码内容,不能保证系统安全性#Enabling this code content of the module, does not guarantee system security:| 关于#About:|