Skip to content
Permalink
Browse files

Fix add-on button map overriding user button map

  • Loading branch information...
garbear committed Oct 19, 2016
1 parent c89326e commit 0da70a1aba4dd47c15a8ca279ccb618132a1ecab
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/storage/StorageManager.cpp
@@ -89,10 +89,10 @@ bool CStorageManager::Initialize(ADDON::CHelper_libKODI_peripheral* peripheralLi
// Ensure button map path exists in user data
CStorageUtils::EnsureDirectoryExists(strUserButtonMapPath);

m_databases.push_back(DatabasePtr(new CDatabaseXml(strUserButtonMapPath, true, m_buttonMapper->GetCallbacks())));
//m_databases.push_back(DatabasePtr(new CDatabaseRetroArch(strUserButtonMapPath, true, &m_controllerMapper))); // TODO
m_databases.push_back(DatabasePtr(new CDatabaseXml(strAddonButtonMapPath, false, m_buttonMapper->GetCallbacks())));
//m_databases.push_back(DatabasePtr(new CDatabaseRetroArch(strAddonButtonMapPath, false))); // TODO
m_databases.push_back(DatabasePtr(new CDatabaseXml(strAddonButtonMapPath, false, m_buttonMapper->GetCallbacks())));
//m_databases.push_back(DatabasePtr(new CDatabaseRetroArch(strUserButtonMapPath, true, &m_controllerMapper))); // TODO
m_databases.push_back(DatabasePtr(new CDatabaseXml(strUserButtonMapPath, true, m_buttonMapper->GetCallbacks())));

m_databases.push_back(DatabasePtr(new CDatabaseJoystickAPI(m_buttonMapper->GetCallbacks())));

0 comments on commit 0da70a1

Please sign in to comment.
You can’t perform that action at this time.