From 370914791ea0f132f20a5e32a57bd1e0e67056f0 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 18 Oct 2020 19:18:02 +0200 Subject: [PATCH] Removed unnecessary cleanup for empty game systems. --- es-app/src/SystemData.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;