mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-08 15:17:26 +08:00
[F] May fix sometime custom command not triggered
This commit is contained in:
@@ -28,6 +28,16 @@ namespace AquaMai.UX
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(MusicSelectProcess), "OnStart")]
|
||||||
|
public static void MusicSelectProcessPreStart()
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrWhiteSpace(AquaMai.AppConfig.UX.ExecOnEntry))
|
||||||
|
{
|
||||||
|
Exec(AquaMai.AppConfig.UX.ExecOnEntry);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static void Exec(string command)
|
private static void Exec(string command)
|
||||||
{
|
{
|
||||||
var process = new System.Diagnostics.Process();
|
var process = new System.Diagnostics.Process();
|
||||||
|
|||||||
Reference in New Issue
Block a user