diff options
author | Haru <haru@dotalux.com> | 2016-02-11 18:53:58 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-08-19 21:32:21 +0200 |
commit | 17466273cf9abba44129d73a801b8ed714484e72 (patch) | |
tree | ec9dfc58a9e2ac96b63c8a6022ef0270840a191c /src/map/log.h | |
parent | 998b48e2d582e666a4afad21dd28f50fbb9eedb5 (diff) | |
download | hercules-17466273cf9abba44129d73a801b8ed714484e72.tar.gz hercules-17466273cf9abba44129d73a801b8ed714484e72.tar.bz2 hercules-17466273cf9abba44129d73a801b8ed714484e72.tar.xz hercules-17466273cf9abba44129d73a801b8ed714484e72.zip |
Ported logs.conf to libconfig
Ported to modern Hercules and cleaned up from Panikon's commits: 2a7c931b9b4e0f9c6e7766cb25701514230ec7e3, f5b1ee3df777ba7e69f1f99abaf0d00b987fc0e3, 6d1f8f50b0e7349bdab2c53bb172d0b036e47c04
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/log.h')
-rw-r--r-- | src/map/log.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/log.h b/src/map/log.h index 0a5e13208..7ff36d126 100644 --- a/src/map/log.h +++ b/src/map/log.h @@ -2,7 +2,7 @@ * This file is part of Hercules. * http://herc.ws - http://github.com/HerculesWS/Hercules * - * Copyright (C) 2012-2015 Hercules Dev Team + * Copyright (C) 2012-2016 Hercules Dev Team * Copyright (C) Athena Dev Teams * * Hercules is free software: you can redistribute it and/or modify @@ -118,7 +118,8 @@ struct log_interface { bool sql_logs; bool log_chat_woe_disable; int rare_items_log,refine_items_log,price_items_log,amount_items_log; - int branch, mvpdrop, zeny, commands, npc, chat; + int zeny, chat; + bool branch, mvpdrop, commands, npc; char log_branch[64], log_pick[64], log_zeny[64], log_mvpdrop[64], log_gm[64], log_npc[64], log_chat[64]; } config; /* */ @@ -146,7 +147,7 @@ struct log_interface { void (*branch_sub) (struct map_session_data* sd); void (*mvpdrop_sub) (struct map_session_data* sd, int monster_id, int* log_mvp); - int (*config_read) (const char* cfgName); + bool (*config_read) (const char *filename, bool imported); void (*config_done) (void); void (*sql_init) (void); void (*sql_final) (void); |