summaryrefslogtreecommitdiff
path: root/saveload.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-08-12 22:56:45 +0000
committerDarkvater <darkvater@openttd.org>2006-08-12 22:56:45 +0000
commit00aaf8b8f19a59c9c4b80f9f7e6f98ea489448f6 (patch)
tree777f080b4836af7c585e67cfed624533e20c5e47 /saveload.h
parentdf4f4253daa90582073a56a79088c3398241d2d8 (diff)
downloadopenttd-00aaf8b8f19a59c9c4b80f9f7e6f98ea489448f6.tar.xz
(svn r5871) -Feature: Add a possibility to handle pointer strings without a buffer from the configuration file. Handy for variables that will never be changed during runtime
Diffstat (limited to 'saveload.h')
-rw-r--r--saveload.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/saveload.h b/saveload.h
index 1a7fc82e2..9b2ba8b4a 100644
--- a/saveload.h
+++ b/saveload.h
@@ -98,8 +98,10 @@ enum VarTypes {
SLE_VAR_U64 = 8 << 4,
SLE_VAR_NULL = 9 << 4, ///< useful to write zeros in savegame.
SLE_VAR_STRB = 10 << 4, ///< normal string (with pre-allocated buffer)
- SLE_VAR_STRQ = 11 << 4, ///< string enclosed in parentheses
- /* 4 more possible memory-primitives */
+ SLE_VAR_STRBQ= 11 << 4, ///< string enclosed in parentheses (with pre-allocated buffer)
+ SLE_VAR_STR = 12 << 4, ///< string pointer
+ SLE_VAR_STRQ = 13 << 4, ///< string enclosed in parentheses
+ /* 2 more possible memory-primitives */
/* Shortcut values */
SLE_VAR_CHAR = SLE_VAR_I8,
@@ -119,12 +121,16 @@ enum VarTypes {
SLE_CHAR = SLE_FILE_I8 | SLE_VAR_CHAR,
SLE_STRINGID = SLE_FILE_STRINGID | SLE_VAR_U16,
SLE_STRINGBUF = SLE_FILE_STRING | SLE_VAR_STRB,
+ SLE_STRINGBQUOTE= SLE_FILE_STRING | SLE_VAR_STRBQ,
+ SLE_STRING = SLE_FILE_STRING | SLE_VAR_STR,
SLE_STRINGQUOTE = SLE_FILE_STRING | SLE_VAR_STRQ,
/* Shortcut values */
SLE_UINT = SLE_UINT32,
SLE_INT = SLE_INT32,
SLE_STRB = SLE_STRINGBUF,
+ SLE_STRBQ= SLE_STRINGBQUOTE,
+ SLE_STR = SLE_STRING,
SLE_STRQ = SLE_STRINGQUOTE,
/* 8 bytes allocated for a maximum of 8 flags