mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
Invalid SetBGM value sets bgm to default instead
This commit is contained in:
parent
c2295995f0
commit
fd645aabfa
1 changed files with 9 additions and 1 deletions
|
|
@ -221,7 +221,15 @@ namespace Dalamud.Interface.Internal
|
||||||
|
|
||||||
private void OnBgmSetCommand(string command, string arguments)
|
private void OnBgmSetCommand(string command, string arguments)
|
||||||
{
|
{
|
||||||
this.dalamud.Framework.Gui.SetBgm(ushort.Parse(arguments));
|
if (ushort.TryParse(arguments, out var value))
|
||||||
|
{
|
||||||
|
this.dalamud.Framework.Gui.SetBgm(value);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Revert to the original BGM by specifying an invalid one
|
||||||
|
this.dalamud.Framework.Gui.SetBgm(9999);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnDebugDrawDevMenu(string command, string arguments)
|
private void OnDebugDrawDevMenu(string command, string arguments)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue