Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go-to Random Game feature #118

Merged
merged 1 commit into from Apr 26, 2017
Merged

Conversation

zigurana
Copy link

Hi!
This is a PR to enable users to jump to a random game with the push of a button (currently: x). The idea is to get people to play games they would otherwise not consider playing, especially when they have a large collections of games to choose from.
The changes are relatively small, and tested on a test-collection with sub-folders.
I am unsure if recounting all the games every time this is called will take prohibitively long or not, so I would like to get some feedback on that, if possible. I've tried it with a setup with 20K (dummy) files for a system, and that had no discernable effect on performance. Note that this was on a windows machine, but I suspect it will not matter, as ES gets the info from it's internal data-structures (in RAM) anyways.

Let me know what you think!

@joolswills
Copy link
Member

Thanks - if anyone has time to help me with testing would appreciate it cheers.

@zigurana
Copy link
Author

Updated as per the feedback from the ever helpful @pjft,

  • fixed integer overflow
  • now also allows going to random game from SystemView

@pjft
Copy link
Collaborator

pjft commented Apr 26, 2017

Looks good to me. Tested, no concerns from my end.

@joolswills
Copy link
Member

Thanks all.

@joolswills joolswills merged commit 3e15aef into RetroPie:master Apr 26, 2017
@zigurana zigurana deleted the RandomGame branch September 29, 2017 21:53
fabricecaruso referenced this pull request in fabricecaruso/old-EmulationStation-fork---see-batocera-emulationstation-instead Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants