Tell the user if a CD is unidentified

This commit is contained in:
Barry Harris 2012-03-30 14:58:46 +00:00
parent 3e0ad61884
commit d96bf3db3c
3 changed files with 5 additions and 2 deletions

View File

@ -138,8 +138,7 @@ int GetNeoCDTitle(unsigned int nGameID)
game = (NGCDGAME*)malloc(sizeof(NGCDGAME));
memset(game, 0, sizeof(NGCDGAME));
if(GetNeoGeoCDInfo(nGameID))
{
if(GetNeoGeoCDInfo(nGameID)) {
memcpy(game, GetNeoGeoCDInfo(nGameID), sizeof(NGCDGAME));
bprintf(PRINT_NORMAL, _T(" Title: %s \n") , game->pszTitle);
@ -151,6 +150,8 @@ int GetNeoCDTitle(unsigned int nGameID)
SetNeoCDTitle(game->pszTitle);
return 1;
} else {
SetNeoCDTitle(FBALoadStringEx(hAppInst, IDS_UNIDENTIFIED_CD, true));
}
game = NULL;

View File

@ -266,6 +266,7 @@
#define IDS_CARTRIDGE (IDS_STRING + 1420)
#define IDS_HARDWARE (IDS_STRING + 1422)
#define IDS_EMPTY (IDS_STRING + 1424)
#define IDS_UNIDENTIFIED_CD (IDS_STRING + 1426)
#define IDS_ERR_ERROR (IDS_ERROR + 0)
#define IDS_ERR_WARNING (IDS_ERROR + 2)

View File

@ -266,6 +266,7 @@ BEGIN
IDS_CARTRIDGE "cartridge"
IDS_HARDWARE "hardware"
IDS_EMPTY "Empty"
IDS_UNIDENTIFIED_CD "Unidentified CD"
IDS_ERR_ERROR "Error"
IDS_ERR_WARNING "Warning"