core: Weird behavior when getting the API version
This return FALSE
is clearly wrong, any idea what it should be @exalm? It seems to causes fail the unit tests because that return FALSE
is triggered and is interpreted as an API verison of 0, which is obviously wrong.
/**
* retro_core_get_api_version:
* @self: a #RetroCore
*
* Gets the Libretro API version implement by the core.
*
* Returns: the API version
*/
guint
retro_core_get_api_version (RetroCore *self)
{
IpcRunner *proxy;
g_return_val_if_fail (RETRO_IS_CORE (self), 0);
proxy = retro_runner_process_get_proxy (self->process);
if (!proxy)
return FALSE;
return ipc_runner_get_api_version (proxy);
}