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:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user