equal
deleted
inserted
replaced
|
1 /* |
|
2 * Hedgewars, a free turn based strategy game |
|
3 * Copyright (C) 2012 Simeon Maxein <smaxein@googlemail.com> |
|
4 * |
|
5 * This program is free software; you can redistribute it and/or |
|
6 * modify it under the terms of the GNU General Public License |
|
7 * as published by the Free Software Foundation; either version 2 |
|
8 * of the License, or (at your option) any later version. |
|
9 * |
|
10 * This program is distributed in the hope that it will be useful, |
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 * GNU General Public License for more details. |
|
14 * |
|
15 * You should have received a copy of the GNU General Public License |
|
16 * along with this program; if not, write to the Free Software |
|
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
18 */ |
|
19 |
1 /** |
20 /** |
2 * Data structures for game scheme information. |
21 * Data structures for game scheme information. |
3 */ |
22 */ |
4 |
23 |
5 #ifndef CFG_H_ |
24 #ifndef CFG_H_ |
84 /** |
103 /** |
85 * Decrease the reference count of the object and free it if this was the last reference. |
104 * Decrease the reference count of the object and free it if this was the last reference. |
86 */ |
105 */ |
87 void flib_cfg_release(flib_cfg* cfg); |
106 void flib_cfg_release(flib_cfg* cfg); |
88 |
107 |
|
108 /** |
|
109 * Retrieve a mod setting by its name. If the mod is not found, logs an error and returns false. |
|
110 */ |
|
111 bool flib_cfg_get_mod(flib_cfg *cfg, const char *name); |
|
112 |
|
113 /** |
|
114 * Retrieve a game setting by its name. If the setting is not found, logs an error and returns def. |
|
115 */ |
|
116 int flib_cfg_get_setting(flib_cfg *cfg, const char *name, int def); |
|
117 |
89 #endif /* CFG_H_ */ |
118 #endif /* CFG_H_ */ |