diff options
-rw-r--r-- | src/ARCodeFile.cpp | 10 | ||||
-rw-r--r-- | src/FATStorage.cpp | 6 | ||||
-rw-r--r-- | src/frontend/qt_sdl/Config.cpp | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/src/ARCodeFile.cpp b/src/ARCodeFile.cpp index d1f34fb..80833e3 100644 --- a/src/ARCodeFile.cpp +++ b/src/ARCodeFile.cpp @@ -162,20 +162,20 @@ bool ARCodeFile::Save() { ARCodeCat& cat = *it; - if (it != Categories.begin()) FileWriteFormatted(f, "\r\n"); - FileWriteFormatted(f, "CAT %s\r\n\r\n", cat.Name.c_str()); + if (it != Categories.begin()) FileWriteFormatted(f, "\n"); + FileWriteFormatted(f, "CAT %s\n\n", cat.Name.c_str()); for (ARCodeList::iterator jt = cat.Codes.begin(); jt != cat.Codes.end(); jt++) { ARCode& code = *jt; - FileWriteFormatted(f, "CODE %d %s\r\n", code.Enabled, code.Name.c_str()); + FileWriteFormatted(f, "CODE %d %s\n", code.Enabled, code.Name.c_str()); for (size_t i = 0; i < code.Code.size(); i+=2) { - FileWriteFormatted(f, "%08X %08X\r\n", code.Code[i], code.Code[i + 1]); + FileWriteFormatted(f, "%08X %08X\n", code.Code[i], code.Code[i + 1]); } - FileWriteFormatted(f, "\r\n"); + FileWriteFormatted(f, "\n"); } } 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()); } diff --git a/src/frontend/qt_sdl/Config.cpp b/src/frontend/qt_sdl/Config.cpp index c28f63a..b46c4bf 100644 --- a/src/frontend/qt_sdl/Config.cpp +++ b/src/frontend/qt_sdl/Config.cpp @@ -466,10 +466,10 @@ void Save() switch (entry->Type) { - case 0: Platform::FileWriteFormatted(f, "%s=%d\r\n", entry->Name, *(int*)entry->Value); break; - case 1: Platform::FileWriteFormatted(f, "%s=%d\r\n", entry->Name, *(bool*)entry->Value ? 1:0); break; - case 2: Platform::FileWriteFormatted(f, "%s=%s\r\n", entry->Name, (*(std::string*)entry->Value).c_str()); break; - case 3: Platform::FileWriteFormatted(f, "%s=%" PRId64 "\r\n", entry->Name, *(int64_t*)entry->Value); break; + case 0: Platform::FileWriteFormatted(f, "%s=%d\n", entry->Name, *(int*)entry->Value); break; + case 1: Platform::FileWriteFormatted(f, "%s=%d\n", entry->Name, *(bool*)entry->Value ? 1:0); break; + case 2: Platform::FileWriteFormatted(f, "%s=%s\n", entry->Name, (*(std::string*)entry->Value).c_str()); break; + case 3: Platform::FileWriteFormatted(f, "%s=%" PRId64 "\n", entry->Name, *(int64_t*)entry->Value); break; } } |