mirror of
https://github.com/libretro/mame2003-plus-libretro.git
synced 2024-12-04 15:16:47 +00:00
fix filetype enumeration/ini type in fileio.c
This commit is contained in:
parent
0a279094bd
commit
090bd7407b
12
src/fileio.c
12
src/fileio.c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user