mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Remove EmuState
This commit is contained in:
parent
180eb35876
commit
6a0c15491b
98 changed files with 6 additions and 310 deletions
|
@ -18,7 +18,6 @@
|
|||
|
||||
QList<QPixmap> Resources::m_platforms;
|
||||
QList<QPixmap> Resources::m_countries;
|
||||
QList<QPixmap> Resources::m_ratings;
|
||||
QList<QPixmap> Resources::m_misc;
|
||||
|
||||
QIcon Resources::GetIcon(const QString& name, const QString& dir)
|
||||
|
@ -73,11 +72,6 @@ QPixmap Resources::GetScaledPixmap(const std::string& name)
|
|||
return GetPixmap(QString::fromStdString(name), GetResourcesDir());
|
||||
}
|
||||
|
||||
QPixmap Resources::GetScaledThemePixmap(const std::string& name)
|
||||
{
|
||||
return GetPixmap(QString::fromStdString(name), GetCurrentThemeDir());
|
||||
}
|
||||
|
||||
void Resources::Init()
|
||||
{
|
||||
for (const std::string& platform :
|
||||
|
@ -97,16 +91,6 @@ void Resources::Init()
|
|||
m_misc.append(GetScaledPixmap("nobanner"));
|
||||
m_misc.append(GetScaledPixmap("dolphin_logo"));
|
||||
m_misc.append(GetScaledPixmap("Dolphin"));
|
||||
|
||||
QObject::connect(&Settings::Instance(), &Settings::ThemeChanged, Resources::InitThemeIcons);
|
||||
InitThemeIcons();
|
||||
}
|
||||
|
||||
void Resources::InitThemeIcons()
|
||||
{
|
||||
m_ratings = {GetScaledThemePixmap("rating0"), GetScaledThemePixmap("rating1"),
|
||||
GetScaledThemePixmap("rating2"), GetScaledThemePixmap("rating3"),
|
||||
GetScaledThemePixmap("rating4"), GetScaledThemePixmap("rating5")};
|
||||
}
|
||||
|
||||
QPixmap Resources::GetPlatform(int platform)
|
||||
|
@ -119,11 +103,6 @@ QPixmap Resources::GetCountry(int country)
|
|||
return m_countries[country];
|
||||
}
|
||||
|
||||
QPixmap Resources::GetRating(int rating)
|
||||
{
|
||||
return m_ratings[rating];
|
||||
}
|
||||
|
||||
QPixmap Resources::GetMisc(int id)
|
||||
{
|
||||
return m_misc[id];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue