mirror of https://github.com/hykilpikonna/AquaDX
[F] Disable 2P music
parent
991442d5c0
commit
29505fa4a3
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue