From 2800366e7b575108cca21bd2a1522538912283a7 Mon Sep 17 00:00:00 2001 From: Fledge68 Date: Mon, 20 Jul 2020 08:07:41 -0500 Subject: [PATCH] - very minor code clean up --- source/menu/menu.cpp | 4 ++-- source/menu/menu_main.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source/menu/menu.cpp b/source/menu/menu.cpp index ea4ec601..2053ad47 100644 --- a/source/menu/menu.cpp +++ b/source/menu/menu.cpp @@ -2515,7 +2515,7 @@ bool CMenu::_loadPluginList() bool preCachedList = fsop_FileExist(cachedListFile.c_str()); vector FileTypes = stringToVector(m_plugin.GetFileTypes(i), '|'); m_cacheList.Color = m_plugin.GetCaseColor(i); - m_cacheList.Magic = m_plugin.GetPluginMagic(i); + m_cacheList.Magic = m_plugin.GetPluginMagic(i); m_cacheList.usePluginDBTitles = m_cfg.getBool(PLUGIN_DOMAIN, "database_titles", true); m_cacheList.CreateRomList(m_platform, romsDir, FileTypes, cachedListFile, updateCache); for(vector::iterator tmp_itr = m_cacheList.begin(); tmp_itr != m_cacheList.end(); tmp_itr++) @@ -2539,7 +2539,7 @@ bool CMenu::_loadPluginList() if(m_platform.loaded())/* convert plugin magic to platform name */ platformName = m_platform.getString("PLUGINS", m_plugin.PluginMagicWord); m_cacheList.Color = m_plugin.GetCaseColor(i); - m_cacheList.Magic = m_plugin.GetPluginMagic(i); + m_cacheList.Magic = m_plugin.GetPluginMagic(i); m_cacheList.ParseScummvmINI(scummvm, DeviceName[currentPartition], m_pluginDataDir.c_str(), platformName.c_str(), cachedListFile, updateCache); for(vector::iterator tmp_itr = m_cacheList.begin(); tmp_itr != m_cacheList.end(); tmp_itr++) m_gameList.push_back(*tmp_itr); diff --git a/source/menu/menu_main.cpp b/source/menu/menu_main.cpp index b6d13815..28b8b3a8 100644 --- a/source/menu/menu_main.cpp +++ b/source/menu/menu_main.cpp @@ -182,7 +182,6 @@ void CMenu::_showCF(bool refreshList) if(romsPartition < 0) romsPartition = m_cfg.getInt(PLUGIN_DOMAIN, "partition", 0); Pth = wstringEx(fmt("%s:/%s", DeviceName[romsPartition], m_plugin.GetRomDir(i))); - break; } break; }