- fix game info plugin databases for systems that share the same database files by adding [COMBINED] into platform ini which will associate the platform name with the database name. for example: genesis=megadrive, famicom=nes. you must have the updated platform ini for this commit to work.

This commit is contained in:
Fledge68 2019-04-10 06:51:06 -05:00
parent e246276188
commit d991834789
2 changed files with 7 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 MiB

After

Width:  |  Height:  |  Size: 3.4 MiB

View File

@ -359,12 +359,12 @@ void CMenu::_textGameInfo(void)
if(strlen(platformName) == 0)
return;// no platform name found to match plugin magic #
if(!strcasecmp(platformName, "mame") || !strcasecmp(platformName, "fba_pgm") || !strcasecmp(platformName, "fba_psikyo") || !strcasecmp(platformName, "fb_alpha"))
snprintf(platformName, sizeof(platformName), "%s", "arcade");
if(!strcasecmp(platformName, "turbografx"))
snprintf(platformName, sizeof(platformName), "%s", "pcengine");
if(!strcasecmp(platformName, "genesis"))
snprintf(platformName, sizeof(platformName), "%s", "megadrive");
/* check COMBINED for database platform name */
string newName = m_platform.getString("COMBINED", platformName);
if(newName.empty())
m_platform.remove("COMBINED", platformName);
else
snprintf(platformName, sizeof(platformName), "%s", newName.c_str());
/* Get Game's crc/serial to be used as gameID by searching platformName.ini file */
string romID;// this will be the crc or serial