Skip to content

Don't clear default core info on missing list#18269

Merged
LibretroAdmin merged 1 commit intolibretro:masterfrom
BinBashBanana:core-info-fix
Sep 18, 2025
Merged

Don't clear default core info on missing list#18269
LibretroAdmin merged 1 commit intolibretro:masterfrom
BinBashBanana:core-info-fix

Conversation

@BinBashBanana
Copy link
Copy Markdown
Contributor

This fixes an edge-case bug that I noticed in #18174. The bug seems only possible in emscripten since the core files currently don't contain the core itself (so they don't have to exist).

When the frontend knows the core extension (with frontend_driver_get_core_extension) but the core file is missing, savestate support was disabled due to core_info_list_get_info clearing the default core info (as set by core_info_init_current_core) without checking if the new info was valid. Effectively it set the savestate_support_level back to CORE_INFO_SAVESTATE_DISABLED when the default should be CORE_INFO_SAVESTATE_DETERMINISTIC.

@LibretroAdmin LibretroAdmin merged commit f54bcf3 into libretro:master Sep 18, 2025
31 checks passed
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.

2 participants