mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 11:37:40 +01:00
More conservative unlink error in Hydra
This commit is contained in:
parent
e8b2eea89d
commit
72bb8b71b6
@ -168,7 +168,11 @@ static void unlink_roms(void)
|
||||
if (runners[i].rom_path[0])
|
||||
{
|
||||
if (unlink(runners[i].rom_path) == -1)
|
||||
perror("unlink rom_path failed");
|
||||
{
|
||||
int fd;
|
||||
if ((fd = open(runners[i].rom_path, O_RDONLY)) != -1)
|
||||
perror("unlink rom_path failed");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user