Fix adding extra new line on checkbox change
This commit is contained in:
parent
20d161f4a3
commit
0e122f13fa
1 changed files with 4 additions and 2 deletions
|
@ -328,8 +328,10 @@ bool CwCheatScreen::RebuildCheatFile(int index) {
|
|||
return false;
|
||||
}
|
||||
|
||||
for (const auto &line : lines) {
|
||||
fs << line << '\n';
|
||||
for (int i = 0; i < lines.size(); ++i) {
|
||||
fs << lines[i];
|
||||
if (i != lines.size()-1)
|
||||
fs << '\n';
|
||||
}
|
||||
fs.close();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue