More verbose logging of subsystems.

This commit is contained in:
Themaister 2014-04-04 16:02:53 +02:00
parent 7d9732ba20
commit 72ad4d937e
2 changed files with 12 additions and 3 deletions

View File

@ -933,10 +933,20 @@ bool rarch_environment_cb(unsigned cmd, void *data)
case RETRO_ENVIRONMENT_SET_SPECIAL_GAME_TYPES:
{
RARCH_LOG("Environ SET_SPECIAL_GAME_TYPES.\n");
unsigned i;
unsigned i, j;
const struct retro_game_special_info *info = (const struct retro_game_special_info*)data;
for (i = 0; info[i].ident; i++)
RARCH_LOG("Special game type: %s (ident: %s)\n", info[i].desc, info[i].ident);
{
RARCH_LOG("Special game type: %s\n", info[i].desc);
RARCH_LOG(" Ident: %s\n", info[i].ident);
RARCH_LOG(" ID: %u\n", info[i].id);
RARCH_LOG(" ROMs:\n");
for (j = 0; j < info[i].num_roms; j++)
{
RARCH_LOG(" %s (%s)\n",
info[i].roms[j].desc, info[i].roms[j].required ? "required" : "optional");
}
}
free(g_extern.system.special);
g_extern.system.special = (struct retro_game_special_info*)calloc(i, sizeof(*g_extern.system.special));

View File

@ -622,7 +622,6 @@ struct retro_game_special_memory_info
struct retro_game_special_rom_info
{
const char *desc; // Describes what the ROM is (SGB bios, GB rom, etc).
const char *ident; // A computer friendly short string identifier for the ROM type. Must be [a-z].
const char *valid_extensions; // Same definition as retro_get_system_info().
bool need_fullpath; // Same definition as retro_get_system_info().
bool block_extract; // Same definition as retro_get_system_info().