mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-10 21:05:12 +01:00
Reset YM core only when value is changed
This commit is contained in:
parent
1768a34144
commit
147edb894b
@ -1096,13 +1096,17 @@ static void check_variables(void)
|
|||||||
var.key = "genesis_plus_gx_ym3438";
|
var.key = "genesis_plus_gx_ym3438";
|
||||||
environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var);
|
environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var);
|
||||||
{
|
{
|
||||||
|
orig_value = config.ym3438;
|
||||||
if (!strcmp(var.value, "nuked opn2"))
|
if (!strcmp(var.value, "nuked opn2"))
|
||||||
config.ym3438 = 1;
|
config.ym3438 = 1;
|
||||||
else
|
else
|
||||||
config.ym3438 = 0;
|
config.ym3438 = 0;
|
||||||
|
|
||||||
sound_init();
|
if (orig_value != config.ym3438)
|
||||||
sound_reset();
|
{
|
||||||
|
sound_init();
|
||||||
|
sound_reset();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user