fix filetype enumeration/ini type in fileio.c

This commit is contained in:
markwkidd 2018-03-24 20:28:43 -04:00
parent 0a279094bd
commit 090bd7407b

View File

@ -106,9 +106,6 @@ mame_file *mame_fopen(const char *gamename, const char *filename, int filetype,
case FILETYPE_ARTWORK:
case FILETYPE_HISTORY:
case FILETYPE_LANGUAGE:
#ifndef MESS
case FILETYPE_INI:
#endif
if (openforwrite)
{
logerror("mame_fopen: type %02x write not supported\n", filetype);
@ -220,14 +217,6 @@ mame_file *mame_fopen(const char *gamename, const char *filename, int filetype,
case FILETYPE_CTRLR:
return generic_fopen(filetype, gamename, filename, 0, openforwrite ? FILEFLAG_OPENWRITE : FILEFLAG_OPENREAD);
/* game specific ini files */
case FILETYPE_INI:
#ifndef MESS
return generic_fopen(filetype, NULL, gamename, 0, FILEFLAG_OPENREAD);
#else
return generic_fopen(filetype, NULL, gamename, 0, openforwrite ? FILEFLAG_OPENWRITE : FILEFLAG_OPENREAD);
#endif
#ifdef MESS
/* CRC files */
case FILETYPE_CRC:
@ -824,7 +813,6 @@ static const char *get_extension_for_filetype(int filetype)
break;
case FILETYPE_CTRLR: /* config files */
case FILETYPE_INI: /* game specific ini files */
extension = "ini";
break;