forked from len0rd/rockbox
Theme Editor: If a pr project specifies a valid #target value, its settings are now loaded into the device configuration panel when the theme is loaded
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27476 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ced4080bc3
commit
eb52a45a0c
4 changed files with 43 additions and 3 deletions
|
@ -49,6 +49,7 @@ TargetData::TargetData(QString file)
|
|||
QRect rSize(0, 0, 0, 0);
|
||||
ScreenDepth rDepth = None;
|
||||
bool fm = false;
|
||||
bool record = false;
|
||||
|
||||
if(id == "")
|
||||
break;
|
||||
|
@ -119,13 +120,19 @@ TargetData::TargetData(QString file)
|
|||
if(s.toLower() == "yes")
|
||||
fm = true;
|
||||
}
|
||||
else if(key.toLower() == "record")
|
||||
{
|
||||
QString s = scanString(data, cursor);
|
||||
if(s.toLower() == "yes")
|
||||
record = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Checking for the closing '}' and adding the entry */
|
||||
if(require('}', data, cursor))
|
||||
{
|
||||
entries.append(Entry(name, size, depth, rSize, rDepth, fm));
|
||||
entries.append(Entry(name, size, depth, rSize, rDepth, fm, record));
|
||||
indices.insert(id, index);
|
||||
index++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue