Mod设置

This commit is contained in:
ZouJin 2023-08-20 23:24:06 +10:00
parent 659d86571f
commit 1da42926cf
2 changed files with 4 additions and 3 deletions

View File

@ -342,7 +342,8 @@ namespace VPet_Simulator.Windows
{ {
try 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.GetType().Assembly.Location.Contains(mod.Path.FullName))
{ {
ButtonSetting.Visibility = Visibility.Visible; ButtonSetting.Visibility = Visibility.Visible;
@ -923,7 +924,7 @@ namespace VPet_Simulator.Windows
{ {
try 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.GetType().Assembly.Location.Contains(mod.Path.FullName))
{ {
mainplug.Setting(); mainplug.Setting();

View File

@ -140,7 +140,7 @@ MOD介绍#MOD Description:|
停用该模组#Disable:| 停用该模组#Disable:|
更新至Steam#Update to Steam:| 更新至Steam#Update to Steam:|
创意工坊页面#Workshop Page:| 创意工坊页面#Workshop Page:|
MOD设置#MOD:| MOD设置#MOD Setting:|
启用代码插件#Enable code plugin:| 启用代码插件#Enable code plugin:|
启用该模组的代码内容,不能保证系统安全性#Enabling this code content of the module, does not guarantee system security:| 启用该模组的代码内容,不能保证系统安全性#Enabling this code content of the module, does not guarantee system security:|
关于#About:| 关于#About:|