mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
[PR #749] [MERGED] Prefix libretro core options with core name. #98
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/stenzek/duckstation/pull/749
Author: @dankcushions
Created: 8/12/2020
Status: ✅ Merged
Merged: 8/12/2020
Merged by: @stenzek
Base:
master← Head:coreopts📝 Commits (1)
971d262Prefix libretro core options with core name.📊 Changes
2 files changed (+32 additions, -31 deletions)
View changed files
📝
src/duckstation-libretro/libretro_host_interface.cpp(+30 -30)📝
src/duckstation-libretro/libretro_settings_interface.cpp(+2 -1)📄 Description
Until only recently RetroArch's default behaviour was to save all core options for the installed cores in one global .cfg file. Now it defaults to splitting them out into individual files per-core, but the user may still configure it to use a global file via
global_core_options = "true". The latter is the behavior of my concern, the RetroPie project.To that end, it's suggested for libretro cores to prefix all core options with the name of the core, so they can be grouped and easily identified within a global .cfg. see https://github.com/libretro/RetroArch/blob/master/libretro-common/include/libretro.h#L1150-L1152
Eg:
I have introduced the same behaviour here. Obviously any setting changes made before this change will be left as clutter in the file, and not retrieved. Could put some code in to pick up the previous settings (and subsequently save them under the new format) but you may consider that clutter in the code.
NOTE: I do see this in the logs:
...however the new core options seem to save and load anyway 🤷♂️. I might have missed something...
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.