delete the correct file

This commit is contained in:
ToadKing 2013-01-21 20:28:30 -05:00
parent 6d174dcc3b
commit 7bdc1df39a

3
file.c
View File

@ -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