mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-04 14:27:38 +00:00
Correctly pass NULL when we load no ROM.
This commit is contained in:
parent
2280e28737
commit
95c8d92eec
4
file.c
4
file.c
@ -368,7 +368,7 @@ static bool load_roms(const struct retro_subsystem_info *special, const struct s
|
||||
if (special)
|
||||
ret = pretro_load_game_special(special->id, info, roms->size);
|
||||
else
|
||||
ret = pretro_load_game(info);
|
||||
ret = pretro_load_game(*roms->elems[0].data ? info : NULL);
|
||||
|
||||
if (!ret)
|
||||
RARCH_ERR("Failed to load game.\n");
|
||||
@ -441,7 +441,7 @@ bool init_rom_file(void)
|
||||
attr.i = g_extern.system.info.block_extract;
|
||||
attr.i |= g_extern.system.info.need_fullpath << 1;
|
||||
attr.i |= (!g_extern.system.no_game) << 2;
|
||||
string_list_append(roms, g_extern.fullpath, attr);
|
||||
string_list_append(roms, g_extern.libretro_no_rom ? "" : g_extern.fullpath, attr);
|
||||
}
|
||||
|
||||
#ifdef HAVE_ZLIB
|
||||
|
Loading…
Reference in New Issue
Block a user