diff options
author | shennetsind <ind@henn.et> | 2013-03-17 01:12:33 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-03-17 01:12:33 -0300 |
commit | 3b89a135dcde9779bd0537cd136a7c34cfadbe3f (patch) | |
tree | e963c1cf1f5e0168e7cd0b415d2e5963b229cb3d /src/config | |
parent | 5b1fee9ef54dbfc27fef5f6125a678fa88eba1be (diff) | |
download | hercules-3b89a135dcde9779bd0537cd136a7c34cfadbe3f.tar.gz hercules-3b89a135dcde9779bd0537cd136a7c34cfadbe3f.tar.bz2 hercules-3b89a135dcde9779bd0537cd136a7c34cfadbe3f.tar.xz hercules-3b89a135dcde9779bd0537cd136a7c34cfadbe3f.zip |
Re-Introducing Console Input
It's back. It's efficient. It's awesome.
http://hercules.ws/board/topic/272-re-introducing-console-input/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/const.h | 6 | ||||
-rw-r--r-- | src/config/core.h | 21 |
2 files changed, 18 insertions, 9 deletions
diff --git a/src/config/const.h b/src/config/const.h index 5fb74e22e..1e7a40d74 100644 --- a/src/config/const.h +++ b/src/config/const.h @@ -93,6 +93,12 @@ time = time * (1 - (float)min(val, 100) / 100); \ } #endif + +/* console_input doesn't go well with minicore */ +#ifdef MINICORE + #undef CONSOLE_INPUT +#endif + /** * End of File **/ diff --git a/src/config/core.h b/src/config/core.h index 1e8ce9992..c9b1463de 100644 --- a/src/config/core.h +++ b/src/config/core.h @@ -1,13 +1,9 @@ -// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL -// For more information, see LICENCE in the main folder +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// Portions Copyright (c) Athena Dev Teams #ifndef _CONFIG_CORE_H_ #define _CONFIG_CORE_H_ -/** - * rAthena configuration file (http://rathena.org) - * For detailed guidance on these check http://rathena.org/wiki/SRC/config/ - **/ - /// Max number of items on @autolootid list #define AUTOLOOTITEM_SIZE 10 @@ -27,8 +23,15 @@ /// your map-server using more resources while this is active, comment the line #define SCRIPT_CALLFUNC_CHECK -/// Uncomment to disable rAthena's anonymous stat report -/// We kindly ask you to consider keeping it enabled, it helps us improve rAthena. +/// Comment to disable Hercules' console_parse +/// CONSOLE_INPUT allows you to type commands into the server's console, +/// Disabling it saves one thread. +#define CONSOLE_INPUT +/// Maximum number of caracters 'CONSOLE_INPUT' will support per line. +#define MAX_CONSOLE_INPUT 150 + +/// Uncomment to disable Hercules' anonymous stat report +/// We kindly ask you to consider keeping it enabled, it helps us improve Hercules. //#define STATS_OPT_OUT /// uncomment to enable query_sql script command and mysql logs to function on it's own thread |