上传MOD时版本信息修正为当前版本 fix #418

This commit is contained in:
ZouJin 2024-08-19 23:07:17 +08:00
parent 96afd62d08
commit 945ca53d98
2 changed files with 4 additions and 0 deletions

View File

@ -881,6 +881,8 @@ namespace VPet_Simulator.Windows
int allcount = App.MainWindows.Count * 2 / 3;
foreach (var item in App.MainWindows)
{
if (item.GameSavesData == null)
continue;
str += item.GameSavesData.GameSave.Name + ",";
if (item.HashCheck)
{

View File

@ -634,6 +634,8 @@ namespace VPet_Simulator.Windows
MessageBoxX.Show("封面图片(icon.png)大于500kb,请修改后重试".Translate(), "MOD上传失败".Translate(), MessageBoxIcon.Error);
return;
}
mods.GameVer = mw.version;
mods.WriteFile();
#if DEMO
MessageBoxX.Show("经测试,除正式版均无创意工坊权限,此功能仅作为展示", "特殊版无法上传创意工坊");
#endif