mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-31 04:25:40 +00:00
Prevented themes using the <resolution> tag from loading altogether.
This commit is contained in:
parent
3a8d19bad5
commit
cb8596ab8a
|
@ -388,6 +388,12 @@ void ThemeData::loadFile(const std::map<std::string, std::string>& sysDataMap,
|
||||||
if (mCurrentThemeSet != mThemeSets.cend())
|
if (mCurrentThemeSet != mThemeSets.cend())
|
||||||
mLegacyTheme = mCurrentThemeSet->second.capabilities.legacyTheme;
|
mLegacyTheme = mCurrentThemeSet->second.capabilities.legacyTheme;
|
||||||
|
|
||||||
|
// The resolution tag introduced in RetroPie EmulationStation in 2020 is a very bad idea
|
||||||
|
// as it changes sizing of components from relative values to absolute pixel values.
|
||||||
|
// So themes using it will simply not get loaded at all.
|
||||||
|
if (root.child("resolution") != nullptr)
|
||||||
|
throw error << ": <resolution> tag not supported";
|
||||||
|
|
||||||
// Check for legacy theme version.
|
// Check for legacy theme version.
|
||||||
int legacyVersion {root.child("formatVersion").text().as_int(-1)};
|
int legacyVersion {root.child("formatVersion").text().as_int(-1)};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue