Undo unrelated changes from previous commit

partially reverts 6c4cea23e
This commit is contained in:
YoshiRulz 2025-01-17 04:48:50 +10:00
parent 6c4cea23e6
commit 58213f3534
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
3 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,6 @@ using System.Collections.Generic;
using System.Globalization;
using System.IO;
using BizHawk.Common.NumberExtensions;
using BizHawk.Common.StringExtensions;
using BizHawk.Emulation.Common;

View File

@ -23,7 +23,7 @@ namespace BizHawk.Client.EmuHawk
public double Probability
{
get => decimal.ToDouble(ProbabilityUpDown.Value);
get => ProbabilityUpDown.Value.ConvertToF64();
set => ProbabilityUpDown.Value = new(value);
}

View File

@ -196,7 +196,7 @@ namespace BizHawk.Client.EmuHawk
XNumeric.Value = XNumeric.Maximum;
}
_stickyHoldController.SetAxisHold(XName, (decimal.ToSingle(XNumeric.Value) * MultiplierX).RoundToInt());
_stickyHoldController.SetAxisHold(XName, (XNumeric.Value.ConvertToF32() * MultiplierX).RoundToInt());
_isSet = true;
}
}
@ -218,7 +218,7 @@ namespace BizHawk.Client.EmuHawk
YNumeric.Value = YNumeric.Maximum;
}
_stickyHoldController.SetAxisHold(YName, (decimal.ToSingle(YNumeric.Value) * MultiplierY).RoundToInt());
_stickyHoldController.SetAxisHold(YName, (YNumeric.Value.ConvertToF32() * MultiplierY).RoundToInt());
_isSet = true;
}
}