diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-10-04 16:04:19 +1000 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-10-04 16:04:19 +1000 |
| commit | d3791d557f576dd3636fd20b3c984abc8de5432a (patch) | |
| tree | 7e17a57dc535b98990175a5160a95165e319b267 /src/tangara/audio/playlist.cpp | |
| parent | e345e7f4155d349bdad39474740cd36c30a38633 (diff) | |
| download | tangara-fw-d3791d557f576dd3636fd20b3c984abc8de5432a.tar.gz | |
Don't create a cache file on deserialising
Diffstat (limited to 'src/tangara/audio/playlist.cpp')
| -rw-r--r-- | src/tangara/audio/playlist.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tangara/audio/playlist.cpp b/src/tangara/audio/playlist.cpp index f57f078d..f0876d4e 100644 --- a/src/tangara/audio/playlist.cpp +++ b/src/tangara/audio/playlist.cpp @@ -158,9 +158,8 @@ auto Playlist::deserialiseCache() -> bool { // Open the cache file std::string cache_file = filepath_ + ".cache"; FRESULT res = - f_open(&file, cache_file.c_str(), FA_READ | FA_WRITE | FA_OPEN_ALWAYS); + f_open(&file, cache_file.c_str(), FA_READ | FA_WRITE | FA_OPEN_EXISTING); if (res != FR_OK) { - ESP_LOGE(kTag, "failed to open cache file! res: %i", res); return false; } |
