[F] Disable 2P music

pull/35/head
Clansty 2024-05-15 23:29:42 +08:00
parent 991442d5c0
commit 29505fa4a3
1 changed files with 18 additions and 0 deletions

View File

@ -57,5 +57,23 @@ namespace AquaMai.UX
return;
}
}
[HarmonyPrefix]
[HarmonyPatch(typeof(SoundManager), "PlayBGM")]
public static bool PrePlayBGM(ref int target)
{
switch (target)
{
case 0:
return true;
case 1:
return false;
case 2:
target = 0;
return true;
default:
return false;
}
}
}
}