-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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:");
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request