Freeciv-3.2
Loading...
Searching...
No Matches
modinst.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__MODINST_H
14#define FC__MODINST_H
15
17{
18 const char *list_url;
19 const char *inst_prefix;
20 const char *autoinstall;
21};
22
23#if IS_DEVEL_VERSION && ! IS_FREEZE_VERSION
24#ifndef MODPACK_LIST_URL
25#define MODPACK_LIST_URL "https://files.freeciv.org/modinst/" DATASUBDIR "/modpack.list"
26#endif
27#define DEFAULT_URL_START "https://files.freeciv.org/modinst/" DATASUBDIR "/"
28#else /* IS_DEVEL_VERSION */
29#ifndef MODPACK_LIST_URL
30#define MODPACK_LIST_URL "https://modpack.freeciv.org/" DATASUBDIR "/modpack.list"
31#endif
32#define DEFAULT_URL_START "https://modpack.freeciv.org/" DATASUBDIR "/"
33#endif /* IS_DEVEL_VERSION */
34
35#define EXAMPLE_URL DEFAULT_URL_START "ancients.modpack"
36
37#define SPECENUM_NAME modpack_type
38#define SPECENUM_VALUE0 MPT_RULESET
39#define SPECENUM_VALUE0NAME N_("Ruleset")
40#define SPECENUM_VALUE1 MPT_TILESET
41#define SPECENUM_VALUE1NAME N_("Tileset")
42#define SPECENUM_VALUE2 MPT_MODPACK
43#define SPECENUM_VALUE2NAME N_("Modpack")
44#define SPECENUM_VALUE3 MPT_SCENARIO
45#define SPECENUM_VALUE3NAME N_("Scenario")
46#define SPECENUM_VALUE4 MPT_SOUNDSET
47#define SPECENUM_VALUE4NAME N_("Soundset")
48#define SPECENUM_VALUE5 MPT_MUSICSET
49#define SPECENUM_VALUE5NAME N_("Musicset")
50#define SPECENUM_VALUE6 MPT_MODPACK_GROUP
51#define SPECENUM_VALUE6NAME N_("Group")
52#include "specenum_gen.h"
53
54void fcmp_init(void);
55void fcmp_deinit(void);
56
58
59#endif /* FC__MODINST_H */
void load_install_info_lists(struct fcmp_params *fcmp)
Definition modinst.c:44
void fcmp_deinit(void)
Definition modinst.c:98
void fcmp_init(void)
Definition modinst.c:82
struct fcmp_params fcmp
Definition mpcli.c:37
const char * inst_prefix
Definition modinst.h:19
const char * list_url
Definition modinst.h:18
const char * autoinstall
Definition modinst.h:20