From fb61301d037660e7ff56caa1d49dd2c7c959b15d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 22 Feb 2016 16:51:16 +0300 Subject: Add support for warn_missing_translation configuration option. --- src/emap/config.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/emap/config.c (limited to 'src/emap/config.c') diff --git a/src/emap/config.c b/src/emap/config.c new file mode 100644 index 0000000..f6c43ee --- /dev/null +++ b/src/emap/config.c @@ -0,0 +1,25 @@ +// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// Copyright (c) 2014 - 2015 Evol developers + +#include "common/hercules.h" + +#include +#include +#include + +#include "common/HPMi.h" +#include "common/memmgr.h" +#include "common/mapindex.h" +#include "common/mmo.h" +#include "common/socket.h" +#include "common/strlib.h" + +#include "ecommon/config.h" + +bool warn_missing_translation = false; + +void config_warn_missing_translation(const char *key __attribute__ ((unused)), + const char *val) +{ + warn_missing_translation = config_switch(val) ? true : false; +} -- cgit v1.2.3-70-g09d2