Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-10 16:41:38 +0000
committerStijn Buys <ingar@osirion.org>2008-10-10 16:41:38 +0000
commit02fcd22d8cde355aa898a8c6bb4773d9434b8e9a (patch)
tree9397f1f5b61a0978acadc4c15fd330ee7138c59b /src/filesystem
parent4331f5c17901f46693dcb5c2df96276f6851be25 (diff)
adds KeyPress, DevInfo and Stats widgets
Diffstat (limited to 'src/filesystem')
-rw-r--r--src/filesystem/inifile.cc5
-rw-r--r--src/filesystem/inifile.h3
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;