N64: Cast enum types to int before passing them to the plugin
This commit is contained in:
parent
f5ff868c50
commit
e86448c825
|
@ -507,6 +507,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64.NativeApi
|
|||
{
|
||||
value = (bool)video_settings.Parameters[Parameter] ? 1 : 0;
|
||||
}
|
||||
else if (video_settings.Parameters[Parameter] is Enum)
|
||||
{
|
||||
value = (int)video_settings.Parameters[Parameter];
|
||||
}
|
||||
m64pConfigSetParameter(video_plugin_section, Parameter, m64p_type.M64TYPE_INT, ref value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue