technobly / VEXTREME

VEXTREME - Vectrex Multicart
GNU General Public License v3.0
62 stars 12 forks source link

Menu fixes to not allow selecting blank files #29

Closed rattboi closed 3 years ago

rattboi commented 4 years ago

Problem

It's possible to select blank slots in the last page of the menu.

Solution

This does a lot more last page detection steps, and adjusts the cursor to stay within the range of actual options.

Steps to Test

Load up a directory of vec/bin files that is not a multiple of 4. The last page will have a blank spot in it. You should not be able to get to it.

References

Fixes #57


Contributor License Agreement

I, the contributor, agree to license my contributions to this project under the terms of the GPL 3.0 or any later version.

Please add your full legal name above, for this PR to be mergeable. If you would prefer to sign a CLA via email, please request that.

technobly commented 3 years ago

Superseded by #73