mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-30 20:15:38 +00:00
Added new theme system variables for differentiating between collections and non-collection systems.
This commit is contained in:
parent
0f3fddc7dc
commit
59f9791efe
|
@ -1231,6 +1231,18 @@ void SystemData::loadTheme()
|
|||
sysData.insert(std::pair<std::string, std::string>("system.name", getName()));
|
||||
sysData.insert(std::pair<std::string, std::string>("system.theme", getThemeFolder()));
|
||||
sysData.insert(std::pair<std::string, std::string>("system.fullName", getFullName()));
|
||||
if (isCollection()) {
|
||||
sysData.insert(
|
||||
std::pair<std::string, std::string>("system.fullName.collections", getFullName()));
|
||||
sysData.insert(
|
||||
std::pair<std::string, std::string>("system.theme.collections", getThemeFolder()));
|
||||
}
|
||||
else {
|
||||
sysData.insert(std::pair<std::string, std::string>("system.fullName.noCollections",
|
||||
getFullName()));
|
||||
sysData.insert(std::pair<std::string, std::string>("system.theme.noCollections",
|
||||
getThemeFolder()));
|
||||
}
|
||||
|
||||
mTheme->loadFile(sysData, path);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue