Fixed a bug related to "remember last played game"
When the first game in "gUpdateList" is the "last played game" but doesn't appear at the top of the GameList when "automatic sorting" is enabled, then "remember last played game" will not function.
Pull Request checklist
Note: these are not necessarily requirements
I reformatted the code with clang-format I checked to make sure my submission worked
Can someone confirm this bug exists, and test if this PR fixes the issue?
Can someone confirm this bug exists, and test if this PR fixes the issue?
This bug can be reproduced easily: 1.Ensure that both “Automatic Sorting” and “Remember Last Played Game” are enabled. 2.First, place z.iso in the DVD folder and launch OPL to generate the games.bin file. 3.Next, add a.iso to the DVD folder, Launch OPL again and run z.iso. 4.After completing the above steps, the “Remember Last Played Game” feature will no longer function. When you launch OPL the next time, the cursor will remain on a.iso instead of z.iso.