mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-18 23:04:25 +00:00
delete the correct file
This commit is contained in:
parent
6d174dcc3b
commit
7bdc1df39a
3
file.c
3
file.c
@ -652,7 +652,6 @@ bool init_rom_file(enum rarch_game_type type)
|
||||
if (ext && !strcasecmp(ext, "zip"))
|
||||
{
|
||||
g_extern.rom_file_temporary = true;
|
||||
strlcpy(g_extern.last_rom, g_extern.fullpath, sizeof(g_extern.last_rom));
|
||||
|
||||
if (!zlib_extract_first_rom(g_extern.fullpath, sizeof(g_extern.fullpath), g_extern.system.valid_extensions))
|
||||
{
|
||||
@ -660,6 +659,8 @@ bool init_rom_file(enum rarch_game_type type)
|
||||
g_extern.rom_file_temporary = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
strlcpy(g_extern.last_rom, g_extern.fullpath, sizeof(g_extern.last_rom));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user