mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 00:49:47 +00:00
SET_CORE_VERSION.
This commit is contained in:
parent
2178a14952
commit
fdcfd3fc71
@ -436,6 +436,11 @@ static bool environment_cb(unsigned cmd, void *data)
|
||||
break;
|
||||
}
|
||||
|
||||
case SNES_ENVIRONMENT_SET_CORE_VERSION:
|
||||
strlcpy(g_extern.system.version, (const char*)data, sizeof(g_extern.system.version));
|
||||
SSNES_LOG("Environ SET_CORE_VERSION: %s\n", g_extern.system.version);
|
||||
break;
|
||||
|
||||
default:
|
||||
SSNES_LOG("Environ UNSUPPORTED (#%u).\n", cmd);
|
||||
return false;
|
||||
|
@ -309,6 +309,7 @@ struct global
|
||||
char *environment_split;
|
||||
|
||||
unsigned rotation;
|
||||
char version[64];
|
||||
} system;
|
||||
|
||||
struct
|
||||
|
@ -135,6 +135,9 @@ extern "C" {
|
||||
// Is only implemented if rotation can be accelerated by hardware.
|
||||
// Valid values are 0, 1, 2, 3, which rotates screen by 0, 90, 180, 270 degrees
|
||||
// counter-clockwise respectively.
|
||||
//
|
||||
#define SNES_ENVIRONMENT_SET_CORE_VERSION 15 // const char * --
|
||||
// Sets version of core as a human readable string.
|
||||
|
||||
struct snes_message
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user