mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 10:10:57 +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
@ -86,6 +86,7 @@ void playlist_delete_index(playlist_t *playlist,
|
||||
(playlist->size - idx) * sizeof(struct playlist_entry));
|
||||
|
||||
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