diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-10 16:41:38 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-10 16:41:38 +0000 |
commit | 02fcd22d8cde355aa898a8c6bb4773d9434b8e9a (patch) | |
tree | 9397f1f5b61a0978acadc4c15fd330ee7138c59b /src/filesystem | |
parent | 4331f5c17901f46693dcb5c2df96276f6851be25 (diff) |
adds KeyPress, DevInfo and Stats widgets
Diffstat (limited to 'src/filesystem')
-rw-r--r-- | src/filesystem/inifile.cc | 5 | ||||
-rw-r--r-- | src/filesystem/inifile.h | 3 |
2 files changed, 8 insertions, 0 deletions
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; |