[+] Custom shop name in photo

This commit is contained in:
Clansty
2024-09-02 23:02:47 +08:00
parent ac94b6d917
commit a3afb1a2b8
6 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using HarmonyLib;
using Manager;
namespace AquaMai.UX;
public class CustomPlaceName
{
[HarmonyPostfix]
[HarmonyPatch(typeof(OperationManager), "CheckAuth_Proc")]
public static void CheckAuth_Proc(OperationManager __instance)
{
if (string.IsNullOrEmpty(AquaMai.AppConfig.UX.CustomPlaceName))
{
return;
}
__instance.ShopData.ShopName = AquaMai.AppConfig.UX.CustomPlaceName;
__instance.ShopData.ShopNickName = AquaMai.AppConfig.UX.CustomPlaceName;
}
}