Browser: bugfix out by 1 in rmo and device change buttons

This commit is contained in:
penfold42 2018-08-05 16:12:28 +10:00
parent 2819392170
commit f0f58879cf

View file

@ -897,22 +897,22 @@ void FileBrowser::UpdateInputFolders()
{ {
if (inputMappings->BrowseSelect()) if (inputMappings->BrowseSelect())
{ {
SelectROMOrDevice(7); // == device 8 SelectROMOrDevice(8); // == device 8
buttonChangedROMDevice = true; buttonChangedROMDevice = true;
} }
else if (inputMappings->BrowseUp()) else if (inputMappings->BrowseUp())
{ {
SelectROMOrDevice(8); // == device 9 SelectROMOrDevice(9); // == device 9
buttonChangedROMDevice = true; buttonChangedROMDevice = true;
} }
else if (inputMappings->BrowseDown()) else if (inputMappings->BrowseDown())
{ {
SelectROMOrDevice(9); // == device 10 SelectROMOrDevice(10); // == device 10
buttonChangedROMDevice = true; buttonChangedROMDevice = true;
} }
else if (inputMappings->BrowseBack()) else if (inputMappings->BrowseBack())
{ {
SelectROMOrDevice(10); // == device 11 SelectROMOrDevice(11); // == device 11
buttonChangedROMDevice = true; buttonChangedROMDevice = true;
} }
} }
@ -920,22 +920,22 @@ void FileBrowser::UpdateInputFolders()
{ {
if (inputMappings->BrowseUp()) if (inputMappings->BrowseUp())
{ {
SelectROMOrDevice(0); SelectROMOrDevice(1);
buttonChangedROMDevice = true; buttonChangedROMDevice = true;
} }
else if (inputMappings->BrowseDown()) else if (inputMappings->BrowseDown())
{ {
SelectROMOrDevice(1); SelectROMOrDevice(2);
buttonChangedROMDevice = true; buttonChangedROMDevice = true;
} }
else if (inputMappings->BrowseBack()) else if (inputMappings->BrowseBack())
{ {
SelectROMOrDevice(2); SelectROMOrDevice(3);
buttonChangedROMDevice = true; buttonChangedROMDevice = true;
} }
else if (inputMappings->BrowseInsert()) else if (inputMappings->BrowseInsert())
{ {
SelectROMOrDevice(3); SelectROMOrDevice(4);
buttonChangedROMDevice = true; buttonChangedROMDevice = true;
} }
} }