settings get read&written

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@11 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-07 20:38:49 +00:00
parent bbf016443d
commit 35ece4674d
13 changed files with 102 additions and 25 deletions
+5
View File
@@ -111,6 +111,11 @@ template <> void Reader::handle(int& i) {
value.ToLong(&l);
i = l;
}
template <> void Reader::handle(unsigned int& i) {
long l = 0;
value.ToLong(&l);
i = abs(l); // abs, because it will seem strange if -1 comes out as MAX_INT
}
template <> void Reader::handle(double& d) {
value.ToDouble(&d);
}