diff options
author | Smokexyz <sagunxp@gmail.com> | 2015-08-29 15:04:04 +0530 |
---|---|---|
committer | Smokexyz <sagunxp@gmail.com> | 2015-10-02 00:42:13 +0530 |
commit | 993138361b5d712afbd7afee6aba5d5c52bdcc4f (patch) | |
tree | d5572d3a5291044e7f890c8f7b9b160c5a1d733f /src/map/status.h | |
parent | f7a97b556e05373711998d4f819cf7d89e4b0ce8 (diff) | |
download | hercules-993138361b5d712afbd7afee6aba5d5c52bdcc4f.tar.gz hercules-993138361b5d712afbd7afee6aba5d5c52bdcc4f.tar.bz2 hercules-993138361b5d712afbd7afee6aba5d5c52bdcc4f.tar.xz hercules-993138361b5d712afbd7afee6aba5d5c52bdcc4f.zip |
Convert refine_db.txt to refine_db.conf (libconfig)
Thanks for Haru and 4414 for pointing out inefficiency in code, edited
as suggested.
Rework - Changed refine_db.conf format to a more concise one, thanks to Haru for suggesting.
[2/10/15]
Updated with corrections pointed out by Haru.
Updated warning and error messages.
Diffstat (limited to 'src/map/status.h')
-rw-r--r-- | src/map/status.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/status.h b/src/map/status.h index 274c64c5b..d49bca8b4 100644 --- a/src/map/status.h +++ b/src/map/status.h @@ -2077,7 +2077,8 @@ struct status_interface { int (*natural_heal_timer) (int tid, int64 tick, int id, intptr_t data); bool (*readdb_job2) (char *fields[], int columns, int current); bool (*readdb_sizefix) (char *fields[], int columns, int current); - bool (*readdb_refine) (char *fields[], int columns, int current); + int (*readdb_refine_libconfig) (const char *filename); + int (*readdb_refine_libconfig_sub) (config_setting_t *r, const char *name, const char *source); bool (*readdb_scconfig) (char *fields[], int columns, int current); void (*read_job_db) (void); void (*read_job_db_sub) (int idx, const char *name, config_setting_t *jdb); |