mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 23:08:47 +00:00
ControlReference: hide parse_error behind GetParseStatus()
This commit is contained in:
parent
9a632ea7b9
commit
492d5b6ac7
3 changed files with 12 additions and 5 deletions
|
@ -33,13 +33,14 @@ void ControlReference::UpdateReference(ciface::Core::DeviceContainer& devices,
|
|||
parsed_expression = nullptr;
|
||||
|
||||
ControlFinder finder(devices, default_device, IsInput());
|
||||
parse_error = ParseExpression(expression, finder, &parsed_expression);
|
||||
m_parse_status = ParseExpression(expression, finder, &parsed_expression);
|
||||
}
|
||||
|
||||
ControlReference::~ControlReference()
|
||||
{
|
||||
delete parsed_expression;
|
||||
}
|
||||
|
||||
int ControlReference::BoundCount() const
|
||||
{
|
||||
if (parsed_expression)
|
||||
|
@ -48,6 +49,11 @@ int ControlReference::BoundCount() const
|
|||
return 0;
|
||||
}
|
||||
|
||||
ExpressionParseStatus ControlReference::GetParseStatus() const
|
||||
{
|
||||
return m_parse_status;
|
||||
}
|
||||
|
||||
ControlReference::ControlReference() : range(1), parsed_expression(nullptr)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue