Freeciv21
Develop your civilization from humble roots to a global empire
modinst.h
Go to the documentation of this file.
1 /*__ ___ ***************************************
2 / \ / \ Copyright (c) 1996-2020 Freeciv21 and Freeciv
3 \_ \ / __/ contributors. This file is part of Freeciv21.
4  _\ \ / /__ Freeciv21 is free software: you can redistribute it
5  \___ \____/ __/ and/or modify it under the terms of the GNU General
6  \_ _/ Public License as published by the Free Software
7  | @ @ \_ Foundation, either version 3 of the License,
8  | or (at your option) any later version.
9  _/ /\ You should have received a copy of the GNU
10  /o) (o/\ \_ General Public License along with Freeciv21.
11  \_____/ / If not, see https://www.gnu.org/licenses/.
12  \____/ ********************************************************/
13 
14 #pragma once
15 
16 #include <QString>
17 #include <QUrl>
18 
19 struct fcmp_params {
20  QUrl list_url;
21  QString inst_prefix;
22  QString autoinstall;
23 };
24 
25 #define MODPACK_LIST_URL \
26  "https://raw.githubusercontent.com/longturn/modpacks/main/index.json"
27 #define DEFAULT_URL_START \
28  "https://raw.githubusercontent.com/longturn/modpacks/main/mods/"
29 
30 #define SPECENUM_NAME modpack_type
31 #define SPECENUM_VALUE0 MPT_RULESET
32 #define SPECENUM_VALUE0NAME N_("Ruleset")
33 #define SPECENUM_VALUE1 MPT_TILESET
34 #define SPECENUM_VALUE1NAME N_("Tileset")
35 #define SPECENUM_VALUE2 MPT_MODPACK
36 #define SPECENUM_VALUE2NAME N_("Modpack")
37 #define SPECENUM_VALUE3 MPT_SCENARIO
38 #define SPECENUM_VALUE3NAME N_("Scenario")
39 #define SPECENUM_VALUE4 MPT_SOUNDSET
40 #define SPECENUM_VALUE4NAME N_("Soundset")
41 #define SPECENUM_VALUE5 MPT_MUSICSET
42 #define SPECENUM_VALUE5NAME N_("Musicset")
43 #define SPECENUM_VALUE6 MPT_MODPACK_GROUP
44 #define SPECENUM_VALUE6NAME N_("Group")
45 #include "specenum_gen.h"
46 
47 void fcmp_init();
48 void fcmp_deinit();
49 
void fcmp_deinit()
Deinitialize modpack installer.
Definition: modinst.cpp:89
void load_install_info_lists(struct fcmp_params *fcmp)
Load all required install info lists.
Definition: modinst.cpp:39
void fcmp_init()
Initialize modpack installer.
Definition: modinst.cpp:77
struct fcmp_params fcmp
Definition: mpcli.cpp:35
QUrl list_url
Definition: modinst.h:20
QString autoinstall
Definition: modinst.h:22
QString inst_prefix
Definition: modinst.h:21