mostly backwards compatibility with old pack system, uses boost tribool

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1311 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2009-01-09 00:49:14 +00:00
parent bce5761781
commit 432cdcd583
8 changed files with 30 additions and 5 deletions
+5
View File
@@ -11,6 +11,7 @@
#include <util/vector2d.hpp>
#include <util/error.hpp>
#include <util/io/package_manager.hpp>
#include <boost/logic/tribool.hpp>
#undef small
typedef void (*ReaderPragmaHandler)(String&);
@@ -366,6 +367,10 @@ template <> void Reader::handle(bool& b) {
const String& v = getValue();
b = (v==_("true") || v==_("1") || v==_("yes"));
}
template <> void Reader::handle(tribool& b) {
const String& v = getValue();
b = (v==_("true") || v==_("1") || v==_("yes"));
}
// ----------------------------------------------------------------------------- : Handling less basic util types
template <> void Reader::handle(Vector2D& vec) {