summaryrefslogtreecommitdiff
path: root/src/ini_type.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2011-03-03 20:56:33 +0000
committeralberth <alberth@openttd.org>2011-03-03 20:56:33 +0000
commitfa9c193539a8b3a43c36c91ad71b2b9c8220fb7a (patch)
tree824051b0e047a46c964223c74deb8b9c93b86826 /src/ini_type.h
parent6a88af662bdca19e1a9cc90f0a00c80496d79b98 (diff)
downloadopenttd-fa9c193539a8b3a43c36c91ad71b2b9c8220fb7a.tar.xz
(svn r22170) -Add: Add IGT_SEQUENCE type for loading ini group lines without further interpretation.
Diffstat (limited to 'src/ini_type.h')
-rw-r--r--src/ini_type.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ini_type.h b/src/ini_type.h
index 6aad2648b..a011a798d 100644
--- a/src/ini_type.h
+++ b/src/ini_type.h
@@ -14,8 +14,9 @@
/** Types of groups */
enum IniGroupType {
- IGT_VARIABLES = 0, ///< values of the form "landscape = hilly"
- IGT_LIST = 1, ///< a list of values, seperated by \n and terminated by the next group block
+ IGT_VARIABLES = 0, ///< Values of the form "landscape = hilly".
+ IGT_LIST = 1, ///< A list of values, separated by \n and terminated by the next group block.
+ IGT_SEQUENCE = 2, ///< A list of uninterpreted lines, terminated by the next group block.
};
/** A single "line" in an ini file. */
@@ -53,8 +54,9 @@ struct IniLoadFile {
IniGroup **last_group; ///< the last group in the ini
char *comment; ///< last comment in file
const char * const *list_group_names; ///< NULL terminated list with group names that are lists
+ const char * const *seq_group_names; ///< NULL terminated list with group names that are sequences.
- IniLoadFile(const char * const *list_group_names = NULL);
+ IniLoadFile(const char * const *list_group_names = NULL, const char * const *seq_group_names = NULL);
virtual ~IniLoadFile();
IniGroup *GetGroup(const char *name, size_t len = 0, bool create_new = true);