diff --git a/AquaMai/AquaMai.csproj b/AquaMai/AquaMai.csproj
index e16e0956..fb34fd1b 100644
--- a/AquaMai/AquaMai.csproj
+++ b/AquaMai/AquaMai.csproj
@@ -292,6 +292,7 @@
+
diff --git a/AquaMai/AquaMai.toml b/AquaMai/AquaMai.toml
index fe73057e..be32a406 100644
--- a/AquaMai/AquaMai.toml
+++ b/AquaMai/AquaMai.toml
@@ -48,6 +48,8 @@ ExtendTimer=true
ImmediateSave=true
# Prevent accidental touch of the Test button
TestProof=false
+# Custom shop name in photo (SDEZ only)
+CustomPlaceName=""
[Performance]
# Disable some useless delays to speed up the game boot process
diff --git a/AquaMai/AquaMai.zh.toml b/AquaMai/AquaMai.zh.toml
index c4de6459..439184d4 100644
--- a/AquaMai/AquaMai.zh.toml
+++ b/AquaMai/AquaMai.zh.toml
@@ -54,6 +54,8 @@ ExtendTimer=true
ImmediateSave=true
# 防止你不小心按到 Test 键,Test 键需要长按 1 秒才能生效
TestProof=false
+# 自定义拍照的店铺名称(仅 SDEZ)
+CustomPlaceName=""
# ===================================
# 一些性能优化
diff --git a/AquaMai/Config.cs b/AquaMai/Config.cs
index 25beb98c..6c819fd3 100644
--- a/AquaMai/Config.cs
+++ b/AquaMai/Config.cs
@@ -34,6 +34,7 @@ namespace AquaMai
public bool LoadLocalBga { get; set; }
public bool TestProof { get; set; }
public string CustomVersionString { get; set; }
+ public string CustomPlaceName { get; set; }
public string ExecOnIdle { get; set; }
public string ExecOnEntry { get; set; }
}
diff --git a/AquaMai/Main.cs b/AquaMai/Main.cs
index 083e42a3..ab546b1b 100644
--- a/AquaMai/Main.cs
+++ b/AquaMai/Main.cs
@@ -79,6 +79,7 @@ namespace AquaMai
// These don't need to be configurable
Patch(typeof(FixCharaCrash));
Patch(typeof(CustomVersionString));
+ Patch(typeof(CustomPlaceName));
Patch(typeof(DisableReboot));
Patch(typeof(RunCommandOnEvents));
Patch(typeof(BasicFix));
diff --git a/AquaMai/UX/CustomPlaceName.cs b/AquaMai/UX/CustomPlaceName.cs
new file mode 100644
index 00000000..63f83ebb
--- /dev/null
+++ b/AquaMai/UX/CustomPlaceName.cs
@@ -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;
+ }
+}