mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 17:37:27 +08:00
[+] Custom shop name in photo
This commit is contained in:
20
AquaMai/UX/CustomPlaceName.cs
Normal file
20
AquaMai/UX/CustomPlaceName.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user