Can all the information that is now supported from within plugin.txt be extracted and incorporated into the plugins.json file so that this information is available before downloading the .zip file and looking inside?
In particular:
- tags
- dependencies
- game version
- requires
- optional
- conflicts
See Plugins::Load within Plugins.cpp:
else if(key == "tags")
for(const DataNode &grand : child)
tags.insert(grand.Token(0));
else if(key == "dependencies")
{
for(const DataNode &grand : child)
{
const string &grandKey = grand.Token(0);
bool grandHasValue = grand.Size() >= 2;
if(grandKey == "game version" && grandHasValue)
dependencies.gameVersion = grand.Token(1);
else if(grandKey == "requires")
for(const DataNode &great : grand)
dependencies.required.insert(great.Token(0));
else if(grandKey == "optional")
for(const DataNode &great : grand)
dependencies.optional.insert(great.Token(0));
else if(grandKey == "conflicts")
for(const DataNode &great : grand)
dependencies.conflicted.insert(great.Token(0));
else
grand.PrintTrace("Skipping unrecognized attribute:");
}
}
Can all the information that is now supported from within
plugin.txtbe extracted and incorporated into theplugins.jsonfile so that this information is available before downloading the.zipfile and looking inside?In particular:
See
Plugins::LoadwithinPlugins.cpp: