mirror of
https://github.com/libretro/snes9x.git
synced 2024-11-23 08:19:46 +00:00
libretro: remove unused S9xGetFilename, pass original rom filename when
loading (#836)
This commit is contained in:
parent
fb3c00460d
commit
33d84d31b8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user