Skip to content

Commit

Permalink
peripherals: only register devices that are mapped in peripherals.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
opdenkamp committed Oct 2, 2011
1 parent 43f00d2 commit a26206c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xbmc/peripherals/Peripherals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ CPeripheral *CPeripherals::CreatePeripheral(CPeripheralBus &bus, const Periphera
mappedType = m_mappings[iMappingPtr].m_mappedTo;
strDeviceName = m_mappings[iMappingPtr].m_strDeviceName;
}
else
{
/* don't create instances for devices that aren't mapped in peripherals.xml */
return NULL;
}

switch(mappedType)
{
Expand Down

0 comments on commit a26206c

Please sign in to comment.