SET_CORE_VERSION.

This commit is contained in:
Themaister 2012-04-01 20:11:19 +02:00
parent 2178a14952
commit fdcfd3fc71
3 changed files with 9 additions and 0 deletions

View File

@ -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;

View File

@ -309,6 +309,7 @@ struct global
char *environment_split;
unsigned rotation;
char version[64];
} system;
struct

View File

@ -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
{