libretro: remove unused S9xGetFilename, pass original rom filename when

loading (#836)
This commit is contained in:
OV2 2023-03-28 18:06:11 +02:00
parent fb3c00460d
commit 33d84d31b8
1 changed files with 1 additions and 19 deletions

View File

@ -1126,7 +1126,7 @@ bool retro_load_game(const struct retro_game_info *game)
}
else
rom_loaded = Memory.LoadROMMem((const uint8_t*)game->data ,game->size);
rom_loaded = Memory.LoadROMMem((const uint8_t*)game->data ,game->size, game->path);
if(biosrom) delete[] biosrom;
}
@ -2089,24 +2089,6 @@ const char* S9xStringInput(const char* in) { return in; }
#define SLASH '/'
#endif
const char* S9xGetFilename(const char* in, s9x_getdirtype type)
{
static char newpath[2048];
newpath[0] = '\0';
switch (type)
{
case ROMFILENAME_DIR:
sprintf(newpath, "%s%c%s%s", g_rom_dir, SLASH, g_basename, in);
return newpath;
default:
break;
}
return in;
}
std::string S9xGetDirectory(s9x_getdirtype type)
{
switch (type)