支持启动时加入访客表

This commit is contained in:
ZouJin 2024-04-01 16:03:48 +08:00
parent 8e056b097f
commit 071c6d7777
2 changed files with 6 additions and 2 deletions

View File

@ -94,6 +94,10 @@ namespace VPet_Simulator.Windows
else
ItemID = 0;
CacheDate = modlps.GetDateTime("cachedate", DateTime.MinValue);
if (CacheDate > DateTime.Now)
{//去掉不合理的清理缓存日期
CacheDate = DateTime.MinValue;
}
//MOD未加载时支持翻译
foreach (var line in modlps.FindAllLine("lang"))
@ -304,7 +308,7 @@ namespace VPet_Simulator.Windows
if (authtype != "FAIL")
authtype = "[认证]".Translate();
}
else if (!(certificate.Issuer.Contains("Microsoft Corporation") || certificate.Issuer.Contains(".NET Foundation Projects"))
else if (!(certificate.Issuer.Contains("Microsoft Corporation") || certificate.Issuer.Contains(".NET Foundation Projects"))
&& !IsPassMOD(mw))
{//不是通过模组,不加载
SuccessLoad = false;

View File

@ -275,7 +275,7 @@ namespace VPet_Simulator.Windows
};
menuItem.Items.Add(menuJoin);
int clid = Array.IndexOf(App.Args, "connect_lobby");
int clid = Array.IndexOf(App.Args, "+connect_lobby");
if (clid != -1)
{
if (ulong.TryParse(App.Args[clid + 1], out ulong lid))