File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ public partial class ExteraMouseInput
3636 [ HarmonyPatch ( typeof ( MouseTouchPanel ) , "Start" ) ]
3737 public static void MouseTouchPanelStart ( MouseTouchPanel __instance )
3838 {
39+ MelonLogger . Msg ( AMDaemon . AppImage . OptionMountRootPath ) ;
3940 var player = __instance . transform . parent . parent . name . Equals ( "LeftMonitor" ) ? 0 : 1 ;
4041 UnityEngine . Object . Destroy ( __instance . transform . parent . GetComponent < GraphicRaycaster > ( ) ) ;
4142 __instance . transform . parent . gameObject . AddComponent < MeshButtonRaycaster > ( ) ;
Original file line number Diff line number Diff line change @@ -15,15 +15,18 @@ namespace AquaMai.Mods.GameSystem;
1515 defaultOn : true ) ]
1616public static class OptionLoadFix
1717{
18+ [ ConfigEntry ( name : "自定义路径" , en : "Custom path to the Option folder" , zh : "自定义 Option 文件夹的路径(没事别填)" ) ]
19+ public static readonly string overridePath = "" ;
20+
1821 [ HarmonyPrefix ]
1922 [ HarmonyPatch ( typeof ( AppImage ) , "OptionMountRootPath" , MethodType . Getter ) ]
2023 public static bool AppImageOptionMountRootPath ( ref string __result )
2124 {
22- __result = Application . streamingAssetsPath ;
25+ __result = string . IsNullOrWhiteSpace ( overridePath ) ? Application . streamingAssetsPath : overridePath ;
2326
2427 return false ;
2528 }
26-
29+
2730 // 如果 optDir 也是 A 开头的话,结果会重复,需要去重
2831 [ HarmonyPostfix ]
2932 [ HarmonyPatch ( typeof ( DataManager ) , "GetDirs" ) ]
You can’t perform that action at this time.
0 commit comments