mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-11 16:49:27 +01:00
Merge pull request #13883 from iota97/cheat-newline
Fix adding extra new line on checkbox change
This commit is contained in:
1 file changed
+4
-2
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user