Added navigation sounds when entering and exiting folders, in both normal gamelists and bundled collections.

This commit is contained in:
Leon Styhre 2020-05-24 15:05:02 +02:00
parent 810b41bdc9
commit e21ddcbe93

View file

@ -98,6 +98,7 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
else {
// It's a folder.
if (cursor->getChildren().size() > 0) {
navigationsounds.playThemeNavigationSound(SELECTSOUND);
mCursorStack.push(cursor);
populateList(cursor->getChildrenListToDisplay());
FileData* cursor = getCursor();
@ -109,6 +110,7 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
}
else if (config->isMappedTo("b", input)) {
if (mCursorStack.size()) {
navigationsounds.playThemeNavigationSound(BACKSOUND);
populateList(mCursorStack.top()->getParent()->getChildren());
setCursor(mCursorStack.top());
mCursorStack.pop();