aboutsummaryrefslogtreecommitdiff
path: root/src/quicktune.h
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.l@openmailbox.org>2017-06-02 12:26:56 +0000
committerLoic Blot <loic.blot@unix-experience.fr>2017-06-03 20:10:30 +0200
commit36bba5b8cac6b5f273f06780f26d20bde70f4fc9 (patch)
tree49e2254bd24050ecca5607a30bd16e6881bc2716 /src/quicktune.h
parent98c13746ce1ca6f246b1fbc6f5fb83c2b88d314d (diff)
downloadminetest-36bba5b8cac6b5f273f06780f26d20bde70f4fc9.tar.gz
minetest-36bba5b8cac6b5f273f06780f26d20bde70f4fc9.tar.bz2
minetest-36bba5b8cac6b5f273f06780f26d20bde70f4fc9.zip
Translated using Weblate (French)
Currently translated at 88.5% (907 of 1024 strings)
Diffstat (limited to 'src/quicktune.h')
0 files changed, 0 insertions, 0 deletions
='n123' href='#n123'>123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef MODS_HEADER
#define MODS_HEADER

#include "irrlichttypes.h"
#include <list>
#include <set>
#include <vector>
#include <string>
#include <map>
#include <exception>
#include "json/json.h"
#include "config.h"

#if USE_CURL
#include <curl/curl.h>
#endif

#define MODNAME_ALLOWED_CHARS "abcdefghijklmnopqrstuvwxyz0123456789_"

class ModError : public std::exception
{
public:
	ModError(const std::string &s)
	{
		m_s = "ModError: ";
		m_s += s;
	}
	virtual ~ModError() throw()
	{}
	virtual const char * what() const throw()
	{
		return m_s.c_str();
	}
	std::string m_s;
};

struct ModSpec
{
	std::string name;
	std::string path;
	//if normal mod:
	std::set<std::string> depends;
	std::set<std::string> optdepends;
	std::set<std::string> unsatisfied_depends;

	bool part_of_modpack;
	bool is_modpack;
	// if modpack:
	std::map<std::string,ModSpec> modpack_content;
	ModSpec(const std::string name_="", const std::string path_=""):
		name(name_),