aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ARCodeFile.cpp10
-rw-r--r--src/Config.cpp4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/ARCodeFile.cpp b/src/ARCodeFile.cpp
index e7780b7..d79cd39 100644
--- a/src/ARCodeFile.cpp
+++ b/src/ARCodeFile.cpp
@@ -171,20 +171,20 @@ bool ARCodeFile::Save()
{
ARCodeCat& cat = *it;
- if (it != Categories.begin()) fprintf(f, "\n");
- fprintf(f, "CAT %s\n\n", cat.Name);
+ if (it != Categories.begin()) fprintf(f, "\r\n");
+ fprintf(f, "CAT %s\r\n\r\n", cat.Name);
for (ARCodeList::iterator jt = cat.Codes.begin(); jt != cat.Codes.end(); jt++)
{
ARCode& code = *jt;
- fprintf(f, "CODE %d %s\n", code.Enabled, code.Name);
+ fprintf(f, "CODE %d %s\r\n", code.Enabled, code.Name);
for (u32 i = 0; i < code.CodeLen; i+=2)
{
- fprintf(f, "%08X %08X\n", code.Code[i], code.Code[i+1]);
+ fprintf(f, "%08X %08X\r\n", code.Code[i], code.Code[i+1]);
}
- fprintf(f, "\n");
+ fprintf(f, "\r\n");
}
}
diff --git a/src/Config.cpp b/src/Config.cpp
index b39abd0..a84971a 100644
--- a/src/Config.cpp
+++ b/src/Config.cpp
@@ -173,9 +173,9 @@ void Save()
}
if (entry->Type == 0)
- fprintf(f, "%s=%d\n", entry->Name, *(int*)entry->Value);
+ fprintf(f, "%s=%d\r\n", entry->Name, *(int*)entry->Value);
else
- fprintf(f, "%s=%s\n", entry->Name, (char*)entry->Value);
+ fprintf(f, "%s=%s\r\n", entry->Name, (char*)entry->Value);
entry++;
}