mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Config: Don't save empty sections.
This commit is contained in:
parent
ecf509c362
commit
c77f5da9ea
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue