Just look for the toplevel dir tag
"campaign_name" is not an existing attribute in the given config anymore. An addon should only contain a single toplevel dir tag with the name of the addon anyway.
This commit is contained in:
parent
d014cf5409
commit
0fee1695f6
1 changed files with 2 additions and 1 deletions
|
@ -125,10 +125,11 @@ void find_translations(const config& base_dir, config& addon)
|
|||
|
||||
void add_license(config& cfg)
|
||||
{
|
||||
config& dir = cfg.find_child("dir", "name", cfg["campaign_name"]);
|
||||
config& dir = cfg.child("dir");
|
||||
|
||||
// No top-level directory? Hm..
|
||||
if(!dir) {
|
||||
LOG_CS << "Could not find toplevel [dir] tag";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue