From 3eb363f813bfc4fbca250579848532ef296b3077 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 16 May 2018 21:52:12 +0100 Subject: Add updating to online content browser --- src/content/packages.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/content/packages.h') 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 screenshots; bool valid() { return !(name.empty() || title.empty() || author.empty() || - type.empty() || url.empty()); + type.empty() || url.empty() || release <= 0); } }; -- cgit v1.2.3