Removed unnecessary cleanup for empty game systems.

This commit is contained in:
Leon Styhre 2020-10-18 19:18:02 +02:00
parent d7372df031
commit 370914791e

View file

@ -82,8 +82,10 @@ SystemData::SystemData(
SystemData::~SystemData() SystemData::~SystemData()
{ {
if (Settings::getInstance()->getString("SaveGamelistsMode") == "on exit") if (Settings::getInstance()->getString("SaveGamelistsMode") == "on exit") {
writeMetaData(); if (mRootFolder->getGameCount().first + mRootFolder->getGameCount().second != 0)
writeMetaData();
}
delete mRootFolder; delete mRootFolder;
delete mFilterIndex; delete mFilterIndex;