mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
Simplify RARCH_CTL_VERIFY_API_VERSION
This commit is contained in:
parent
1c3bf435e5
commit
76f068f852
11
retroarch.c
11
retroarch.c
@ -1478,11 +1478,14 @@ bool rarch_ctl(enum rarch_ctl_state state, void *data)
|
||||
}
|
||||
break;
|
||||
case RARCH_CTL_VERIFY_API_VERSION:
|
||||
RARCH_LOG("Version of libretro API: %u\n", core.retro_api_version());
|
||||
RARCH_LOG("Compiled against API: %u\n", RETRO_API_VERSION);
|
||||
{
|
||||
unsigned api_version = core.retro_api_version();
|
||||
RARCH_LOG("Version of libretro API: %u\n", api_version);
|
||||
RARCH_LOG("Compiled against API: %u\n", RETRO_API_VERSION);
|
||||
|
||||
if (core.retro_api_version() != RETRO_API_VERSION)
|
||||
RARCH_WARN("%s\n", msg_hash_to_str(MSG_LIBRETRO_ABI_BREAK));
|
||||
if (api_version != RETRO_API_VERSION)
|
||||
RARCH_WARN("%s\n", msg_hash_to_str(MSG_LIBRETRO_ABI_BREAK));
|
||||
}
|
||||
break;
|
||||
case RARCH_CTL_FILL_PATHNAMES:
|
||||
rarch_init_savefile_paths();
|
||||
|
Loading…
x
Reference in New Issue
Block a user