From 76bbd4682958b3904b95fe062d51f55978515a10 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 8 May 2015 17:28:03 -0400 Subject: Core: Remove some header inclusions in header files Replaces them with forward declarations of used types, or removes them entirely if they aren't used at all. This also replaces certain Common headers with less inclusive ones (in terms of definitions they pull in). --- Source/Core/DolphinWX/ISOFile.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Source/Core/DolphinWX/ISOFile.cpp') diff --git a/Source/Core/DolphinWX/ISOFile.cpp b/Source/Core/DolphinWX/ISOFile.cpp index ab947e6de1..24d6c202fe 100644 --- a/Source/Core/DolphinWX/ISOFile.cpp +++ b/Source/Core/DolphinWX/ISOFile.cpp @@ -40,7 +40,7 @@ static const u32 CACHE_REVISION = 0x123; #define DVD_BANNER_WIDTH 96 #define DVD_BANNER_HEIGHT 32 -static std::string GetLanguageString(IVolume::ELanguage language, std::map strings) +static std::string GetLanguageString(DiscIO::IVolume::ELanguage language, std::map strings) { auto end = strings.end(); auto it = strings.find(language); @@ -48,9 +48,9 @@ static std::string GetLanguageString(IVolume::ELanguage language, std::mapsecond; // English tends to be a good fallback when the requested language isn't available - if (language != IVolume::ELanguage::LANGUAGE_ENGLISH) + if (language != DiscIO::IVolume::ELanguage::LANGUAGE_ENGLISH) { - it = strings.find(IVolume::ELanguage::LANGUAGE_ENGLISH); + it = strings.find(DiscIO::IVolume::ELanguage::LANGUAGE_ENGLISH); if (it != end) return it->second; } @@ -207,7 +207,7 @@ std::string GameListItem::GetCompany() const return m_company; } -std::string GameListItem::GetDescription(IVolume::ELanguage language) const +std::string GameListItem::GetDescription(DiscIO::IVolume::ELanguage language) const { return GetLanguageString(language, m_descriptions); } @@ -217,7 +217,7 @@ std::string GameListItem::GetDescription() const return GetDescription(SConfig::GetInstance().m_LocalCoreStartupParameter.GetCurrentLanguage(m_Platform != GAMECUBE_DISC)); } -std::string GameListItem::GetName(IVolume::ELanguage language) const +std::string GameListItem::GetName(DiscIO::IVolume::ELanguage language) const { return GetLanguageString(language, m_names); } @@ -233,10 +233,10 @@ std::string GameListItem::GetName() const return name; } -std::vector GameListItem::GetLanguages() const +std::vector GameListItem::GetLanguages() const { - std::vector languages; - for (std::pair name : m_names) + std::vector languages; + for (std::pair name : m_names) languages.push_back(name.first); return languages; } -- cgit v1.2.3