Prefix libretro core options with core name.

This commit is contained in:
dankcushions
2020-08-12 12:15:07 +01:00
parent d733553425
commit 971d262b0c
2 changed files with 32 additions and 31 deletions

View File

@ -8,8 +8,9 @@ Log_SetChannel(LibretroSettingsInterface);
template<typename T, typename DefaultValueType>
static T GetVariable(const char* section, const char* key, DefaultValueType default_value)
{
TinyString full_key;
full_key.Format("%s.%s", section, key);
full_key.Format("duckstation_%s.%s", section, key);
retro_variable rv = {full_key.GetCharArray(), nullptr};
if (!g_retro_environment_callback(RETRO_ENVIRONMENT_GET_VARIABLE, &rv) || !rv.value)