diff --git a/es-app/src/SystemData.cpp b/es-app/src/SystemData.cpp index 2dbb9abd9..4c5f0d200 100644 --- a/es-app/src/SystemData.cpp +++ b/es-app/src/SystemData.cpp @@ -82,8 +82,10 @@ SystemData::SystemData( SystemData::~SystemData() { - if (Settings::getInstance()->getString("SaveGamelistsMode") == "on exit") - writeMetaData(); + if (Settings::getInstance()->getString("SaveGamelistsMode") == "on exit") { + if (mRootFolder->getGameCount().first + mRootFolder->getGameCount().second != 0) + writeMetaData(); + } delete mRootFolder; delete mFilterIndex;