diff options
author | Arisotura <thetotalworm@gmail.com> | 2023-11-02 12:40:49 +0100 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2023-11-02 12:40:49 +0100 |
commit | bff7a0d1148026876871ac2b6133823a044614dc (patch) | |
tree | b9416d9eb59a66d329aa9adeb3427d56fbed4b0d /src/FATStorage.cpp | |
parent | eb13bce6e7300ffb71f76dec11ce422e05154c28 (diff) |
make linebreaks in text files not weird
Diffstat (limited to 'src/FATStorage.cpp')
-rw-r--r-- | src/FATStorage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FATStorage.cpp b/src/FATStorage.cpp index 1d8b741..ec72fb6 100644 --- a/src/FATStorage.cpp +++ b/src/FATStorage.cpp @@ -319,17 +319,17 @@ void FATStorage::SaveIndex() FileHandle* f = OpenLocalFile(IndexPath, FileMode::WriteText); if (!f) return; - FileWriteFormatted(f, "SIZE %" PRIu64 "\r\n", FileSize); + FileWriteFormatted(f, "SIZE %" PRIu64 "\n", FileSize); for (const auto& [key, val] : DirIndex) { - FileWriteFormatted(f, "DIR %u %s\r\n", + FileWriteFormatted(f, "DIR %u %s\n", val.IsReadOnly?1:0, val.Path.c_str()); } for (const auto& [key, val] : FileIndex) { - FileWriteFormatted(f, "FILE %u %" PRIu64 " %" PRId64 " %u %s\r\n", + FileWriteFormatted(f, "FILE %u %" PRIu64 " %" PRId64 " %u %s\n", val.IsReadOnly?1:0, val.Size, val.LastModified, val.LastModifiedInternal, val.Path.c_str()); } |