aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2021-05-06 00:40:11 +0200
committerArisotura <thetotalworm@gmail.com>2021-05-06 00:40:11 +0200
commit6f91bcc39fdccecda83831978b23a413ea6809d1 (patch)
tree87f639682dab79d40c5a20ad814d0ded01428b2b /src
parentd3c298bbe4dde6d97485ad32f6d454d0ca4ab11f (diff)
use shitfucking stupid linebreaks so that our text files don't like stupid compact blobs in Notepad
(really, fuck Notepad)
Diffstat (limited to 'src')
-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++;
}