mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 01:57:27 +08:00
[F] Disable 2P music
This commit is contained in:
@@ -57,5 +57,23 @@ namespace AquaMai.UX
|
|||||||
return;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user