mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core: Fix in RegisterGlobalSerialize
git-svn-id: svn://ultimatepp.org/upp/trunk@11291 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
fcb8e80847
commit
7f42448be7
1 changed files with 13 additions and 2 deletions
|
|
@ -699,8 +699,19 @@ void SerializeGlobalConfigs(Stream& s)
|
|||
int q = sGCfg().Find(name);
|
||||
if(q >= 0) {
|
||||
int w = sGSerialize().Find(name);
|
||||
if(w >= 0)
|
||||
sGSerialize()[w](s);
|
||||
if(w >= 0) {
|
||||
String h;
|
||||
if(s.IsStoring()) {
|
||||
StringStream ss;
|
||||
sGSerialize()[w](ss);
|
||||
h = ss;
|
||||
}
|
||||
s % h;
|
||||
if(s.IsLoading()) {
|
||||
StringStream ss(h);
|
||||
sGSerialize()[w](ss);
|
||||
}
|
||||
}
|
||||
else
|
||||
s % sGCfg()[q];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue