mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix bug with empty themes showing up
This commit is contained in:
parent
14cd094535
commit
591dfdd0c5
1 changed files with 5 additions and 0 deletions
|
@ -114,6 +114,11 @@ static void LoadThemeInfo(const std::vector<Path> &directories) {
|
|||
// Alright, let's loop through the sections and see if any is a theme.
|
||||
for (size_t i = 0; i < ini.Sections().size(); i++) {
|
||||
Section §ion = *(ini.Sections()[i].get());
|
||||
|
||||
if (section.name().empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
ThemeInfo info;
|
||||
section.Get("Name", &info.name, section.name().c_str());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue