Add messages for [COMBO] types

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
Alexis Maiquez 2023-02-11 05:51:35 +01:00
parent 5e384d968d
commit e2d80a074c

View File

@ -685,6 +685,7 @@ namespace WallpaperEngine::Render::Shaders
{
json data = json::parse (content);
auto combo = jsonFindRequired (data, "combo", "cannot parse combo information");
auto type = data.find ("type");
auto defvalue = data.find ("default");
// add line feed just in case
@ -700,6 +701,16 @@ namespace WallpaperEngine::Render::Shaders
// so only define the ones that are not already defined
if (entry == this->m_combos->end ())
{
if (type != data.end () && (*type) == "audioprocessingoptions")
{
sLog.out ("Found audioprocessing value, nothing working yet");
this->m_combos->insert (std::make_pair <std::string, int> (*combo, 1));
}
else
{
if (type != data.end ())
sLog.error ("Resorting to default value as type ", *type, " is unknown");
// if no combo is defined just load the default settings
if (defvalue == data.end ())
{
@ -724,6 +735,7 @@ namespace WallpaperEngine::Render::Shaders
}
}
}
}
void Compiler::parseParameterConfiguration (const std::string& type, const std::string& name, const std::string& content)
{