diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-16 21:52:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-16 21:52:12 +0100 |
commit | 3eb363f813bfc4fbca250579848532ef296b3077 (patch) | |
tree | 0ab1ef6ad7a56e068e7519daf9795f402e3f27af /src/content/packages.h | |
parent | 45e48295d203b653041404a75c6e2744b78ced45 (diff) | |
download | hax-minetest-server-3eb363f813bfc4fbca250579848532ef296b3077.tar.gz hax-minetest-server-3eb363f813bfc4fbca250579848532ef296b3077.zip |
Add updating to online content browser
Diffstat (limited to 'src/content/packages.h')
-rw-r--r-- | src/content/packages.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/content/packages.h b/src/content/packages.h index 6774678de..2290bd607 100644 --- a/src/content/packages.h +++ b/src/content/packages.h @@ -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); } }; |