mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 02:00:41 +00:00
(Playlist) Prevent us writing the playlist file another time
after we have already saved it once
This commit is contained in:
parent
7e3cce9397
commit
e192d4eaa6
@ -85,7 +85,8 @@ void playlist_delete_index(playlist_t *playlist,
|
||||
memmove(playlist->entries + idx, playlist->entries + idx + 1,
|
||||
(playlist->size - idx) * sizeof(struct playlist_entry));
|
||||
|
||||
playlist->size = playlist->size - 1;
|
||||
playlist->size = playlist->size - 1;
|
||||
playlist->modified = true;
|
||||
|
||||
playlist_write_file(playlist);
|
||||
}
|
||||
@ -368,6 +369,7 @@ void playlist_write_file(playlist_t *playlist)
|
||||
playlist->entries[i].db_name ? playlist->entries[i].db_name : ""
|
||||
);
|
||||
|
||||
playlist->modified = false;
|
||||
fclose(file);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user