mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 19:58:36 +01:00
Config: Don't save empty sections.
This commit is contained in:
1 parent
ecf509c362
commit
c77f5da9ea
1 file changed
+1
-1
@@ -597,7 +597,7 @@ bool IniFile::Save(const char* filename)
|
||||
out << "\xEF\xBB\xBF";
|
||||
|
||||
for (const Section §ion : sections) {
|
||||
if (!section.name().empty()) {
|
||||
if (!section.name().empty() && (!section.lines.empty() || !section.comment.empty())) {
|
||||
out << "[" << section.name() << "]" << section.comment << std::endl;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user