1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Use the parse functions, adjust code to account for the split change

This commit is contained in:
ζeh Matt
2025-09-28 23:09:11 +03:00
parent 9eeaf9a001
commit 6457eca67c
9 changed files with 18 additions and 18 deletions

View File

@@ -149,7 +149,7 @@ ShortcutInput::ShortcutInput(std::string_view value)
}
else
{
auto number = String::parse<int32_t>(rem);
auto number = String::tryParse<int32_t>(rem);
if (number.has_value())
{
Kind = InputDeviceKind::JoyButton;
@@ -161,7 +161,7 @@ ShortcutInput::ShortcutInput(std::string_view value)
else if (String::startsWith(rem, "MOUSE ", true))
{
rem = rem.substr(6);
auto number = String::parse<int32_t>(rem);
auto number = String::tryParse<int32_t>(rem);
if (number)
{
Kind = InputDeviceKind::Mouse;