1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-22 12:25:23 +02:00

Add updating to online content browser

This commit is contained in:
rubenwardy
2018-05-16 21:52:12 +01:00
committed by GitHub
parent 45e48295d2
commit 3eb363f813
11 changed files with 196 additions and 107 deletions

View File

@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#pragma once
#include "config.h"
#include "convert_json.h"
#include "irrlichttypes.h"
struct Package
{
@@ -30,12 +31,13 @@ struct Package
std::string shortDesc;
std::string url; // download URL
u32 release;
std::vector<std::string> screenshots;
bool valid()
{
return !(name.empty() || title.empty() || author.empty() ||
type.empty() || url.empty());
type.empty() || url.empty() || release <= 0);
}
};