equal
deleted
inserted
replaced
229 } |
229 } |
230 |
230 |
231 void IConsoleInit(void) |
231 void IConsoleInit(void) |
232 { |
232 { |
233 uint i; |
233 uint i; |
|
234 #ifdef WITH_REV_HACK |
|
235 #define WITH_REV |
|
236 const char _openttd_revision[] = WITH_REV_HACK; |
|
237 #else |
234 #if defined(WITH_REV) |
238 #if defined(WITH_REV) |
235 extern char _openttd_revision[]; |
239 extern char _openttd_revision[]; |
236 #endif |
240 #endif |
|
241 #endif |
237 _iconsole_output_file = NULL; |
242 _iconsole_output_file = NULL; |
238 _iconsole_color_default = 1; |
243 _iconsole_color_default = 1; |
239 _iconsole_color_error = 3; |
244 _iconsole_color_error = 3; |
240 _iconsole_color_warning = 13; |
245 _iconsole_color_warning = 13; |
241 _iconsole_color_debug = 5; |
246 _iconsole_color_debug = 5; |
586 item_new->_malloc = false; |
591 item_new->_malloc = false; |
587 |
592 |
588 item_new->hook_access = NULL; |
593 item_new->hook_access = NULL; |
589 item_new->hook_after_change = NULL; |
594 item_new->hook_after_change = NULL; |
590 item_new->hook_before_change = NULL; |
595 item_new->hook_before_change = NULL; |
591 |
596 |
592 } |
597 } |
593 |
598 |
594 void IConsoleVarMemRegister(const char* name, _iconsole_var_types type) |
599 void IConsoleVarMemRegister(const char* name, _iconsole_var_types type) |
595 { |
600 { |
596 _iconsole_var* item; |
601 _iconsole_var* item; |