From 02fcd22d8cde355aa898a8c6bb4773d9434b8e9a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 10 Oct 2008 16:41:38 +0000 Subject: adds KeyPress, DevInfo and Stats widgets --- src/filesystem/inifile.cc | 5 +++++ src/filesystem/inifile.h | 3 +++ 2 files changed, 8 insertions(+) (limited to 'src/filesystem') diff --git a/src/filesystem/inifile.cc b/src/filesystem/inifile.cc index 90efa15..ddb1c63 100644 --- a/src/filesystem/inifile.cc +++ b/src/filesystem/inifile.cc @@ -237,6 +237,11 @@ bool IniFile::got_key_bool(const char * keylabel, bool & b) return false; } +void IniFile::unknown_value() const +{ + con_warn << name() << " unknown value '" << value() << "' for key '" << key() << "' at line " << line() << std::endl; +} + void IniFile::unkown_key() const { con_warn << name() << " unknown key '" << key() << "' at line " << line() << std::endl; diff --git a/src/filesystem/inifile.h b/src/filesystem/inifile.h index 765f1af..f118f7b 100644 --- a/src/filesystem/inifile.h +++ b/src/filesystem/inifile.h @@ -81,6 +81,9 @@ public: return line_number; } + /// print a default unkown value error + void unknown_value() const; + /// print a default unkown key error void unkown_key() const; -- cgit v1.2.3