Closed ghost closed 7 years ago
This appears to only happen if there is no games available.
I haven't played around with the emulator yet, but one glance at the code tells me that this can be reproduced by just pressing X on a screen where no games are available (on any OS). It's because there is no 'nil check' in the select_at_cursor
function - ideally, the code from line 195 onwards (in filebrowser.lua
) would be executed only if cursor_item
is non-nil. There should probably be a few other checks as well, I think. @zeta0134 is my analysis correct?
Aye, your analysis was spot on. Fixed by: https://github.com/zeta0134/LuaGB/commit/8c7fcc0153ecd6f0b7442cef8d110f36a923c62f
This applies to the Windows version.