mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 18:09:46 -06:00
make linebreaks in text files not weird
This commit is contained in:
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user