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;
|
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:
|
default:
|
||||||
SSNES_LOG("Environ UNSUPPORTED (#%u).\n", cmd);
|
SSNES_LOG("Environ UNSUPPORTED (#%u).\n", cmd);
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -309,6 +309,7 @@ struct global
|
||||||
char *environment_split;
|
char *environment_split;
|
||||||
|
|
||||||
unsigned rotation;
|
unsigned rotation;
|
||||||
|
char version[64];
|
||||||
} system;
|
} system;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
|
|
|
@ -135,6 +135,9 @@ extern "C" {
|
||||||
// Is only implemented if rotation can be accelerated by hardware.
|
// 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
|
// Valid values are 0, 1, 2, 3, which rotates screen by 0, 90, 180, 270 degrees
|
||||||
// counter-clockwise respectively.
|
// counter-clockwise respectively.
|
||||||
|
//
|
||||||
|
#define SNES_ENVIRONMENT_SET_CORE_VERSION 15 // const char * --
|
||||||
|
// Sets version of core as a human readable string.
|
||||||
|
|
||||||
struct snes_message
|
struct snes_message
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue