mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-28 23:38:49 +00:00
ControlReference/ExpressionParser: separate parsing from binding
This commit is contained in:
parent
ba87a50338
commit
c332580b83
3 changed files with 34 additions and 33 deletions
|
@ -31,7 +31,9 @@ void ControlReference::UpdateReference(const ciface::Core::DeviceContainer& devi
|
|||
const ciface::Core::DeviceQualifier& default_device)
|
||||
{
|
||||
ControlFinder finder(devices, default_device, IsInput());
|
||||
std::tie(m_parse_status, m_parsed_expression) = ParseExpression(expression, finder);
|
||||
std::tie(m_parse_status, m_parsed_expression) = ParseExpression(expression);
|
||||
if (m_parsed_expression)
|
||||
m_parsed_expression->UpdateReferences(finder);
|
||||
}
|
||||
|
||||
int ControlReference::BoundCount() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue