上传文件至 Common

This commit is contained in:
2025-10-13 18:18:47 +08:00
parent 535e955faf
commit 566c6190ff
25 changed files with 1487 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
using HarmonyLib;
namespace SinmaiAssist.Common;
public class CustomVersionText
{
[HarmonyPrefix]
[HarmonyPatch(typeof(MAI2System.Config), "get_displayVersionString")]
public static bool CustomVersionString(ref string __result)
{
if (string.IsNullOrEmpty(SinmaiAssist.MainConfig.Common.CustomVersionText.VersionText)) return true;
__result = SinmaiAssist.MainConfig.Common.CustomVersionText.VersionText;
return false;
}
}